C
C#2mo ago
Adrian10777

ajax

Hello, I am working with a kendo grid asp.net and I am trying to work on this submit reject button on the grid, the header checkbox is supposed to select all and then you can de select or keep all if you want, same with reject, from there there is a 2 buttons in the bottom to submit or decline if we want to keep these rows and then get an email sent to people depending on which button we click. I cannot figure out how to get this to work though and have been stuck if anyone can help
No description
6 Replies
✿ Scarlet ✿
✿ Scarlet ✿2mo ago
What is the content of the black box part?
Adrian10777
Adrian10777OP2mo ago
just names of people
✿ Scarlet ✿
✿ Scarlet ✿2mo ago
You can make a queryable object with the data and sort it based on the clicked header
Adrian10777
Adrian10777OP2mo ago
I am kind of new to this still, but don't think ive used that, do you have an example? do you mean accessing the row that is selected through the DOM and passing it to an object?
whatsinaname
whatsinaname2mo ago
Have a data set with 2 extra Boolean properties for isSubmitted or isRejected and whenever it's checked then send back updated data to server. Server side you have to parse that updated data and update your tables accordingly. Even u can use based on these Boolean properties u can send emails as well.
Adrian10777
Adrian10777OP2mo ago
do you have an example of how to do the second option based on if an ID is selected whether to send email or not, if not then I'll have to create 2 new rows in the table but I don't see why that will work if this doesn't
Want results from more Discord servers?
Add your server