Hi Team,
I am using the Kendo Grid ASP.NET MVC. Please find the column code below. I want to do few things.
1) Edit button is position in the last column for each row having its own. Once the Edit button is being clicked, I want Edit button to be replaced with "Update and Cancel" button.
2) After clicking the edit button, the First column of the whatever row's" Edit" button being clicked will be able to editable by the user. User can type what they wanted to.
3) Once the user clicks on the "Update" button, the first column should be updated (what a user has changed) and become noneditable, and Edit button will replace the "Update and Cancel" button. If user clicks the Cancel button, then the first column would not be updated and Edit button will replace the "Update and Cancel" button.
4) Grid rows (all data) should remain same as they were before. Refresh function would wipe out the previous data which I do not want it to happen. I want to update a specific row's first column when a user clicks the Edit button of that row. After editing and clicking the update button, the rest of the rows must remain same as they were before.
columns.Bound(p => p.ClickStatus)
.Title("Action")
.ClientTemplate("<button type='k-button' class='btn btn-link' id='editComment'>Edit</button>")
.Groupable(true)
.Width(120)
.Locked(false)
.HtmlAttributes(new { style = "text-align: center;" });
Please guys let me know if you know ways to do it. I have been researching this but not able to succeed. Please get back to me as quickly as possible since I am working on the project.
Best,
Mayur Maisuria