This is a migrated thread and some comments may be shown as answers.

Custom button in kendo grid toolbar which works as save changes button (send edited rows)

1 Answer 816 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Khurram Ilyas
Top achievements
Rank 1
Khurram Ilyas asked on 24 Jul 2015, 02:38 PM

Hi, 

I want to use custom button in kendo grid toolbar which work as save changes button (i.e send edited list of rows),

I have a grid which has a checkbox column "Select"  , so when the checkbox is checked the row comes in edited state, and by simply pressing the Save Changes button I could send edited rows to controller method.

But problem is that I need two buttons (i.e ​Approve and Reject which needs to work same as the "Save Changes" button does) to do different tasks on selected records.

 

Attached here is snapshot.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 28 Jul 2015, 08:44 AM
Hi Khurram,

Thank you for contacting us.

To achieve the desired functionality you can try calling the saveChanges() method when the Approve button is clicked and cancelChanges() when the Reject button is clicked. Please give it try and let me know this suggestion helps you.

Looking forward for your reply.

Regards,
Radoslav
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Khurram Ilyas
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or