I have a question about Kendo Grid for ASP.NET MVC. It's probably something that I'm not doing incorrectly.
When I add a new item to the grid, I'm using the solution described on this forum post to move the inserted <tr> to the bottom of the grid. That part works fine. However, when I save the changes to the grid or add a new item, the inserted item is moved to the top of the grid, even if that breaks the currently applied sort order.
I have attached a simple project that demonstrates this. To repro what I'm talking about, do the following:
When I add a new item to the grid, I'm using the solution described on this forum post to move the inserted <tr> to the bottom of the grid. That part works fine. However, when I save the changes to the grid or add a new item, the inserted item is moved to the top of the grid, even if that breaks the currently applied sort order.
I have attached a simple project that demonstrates this. To repro what I'm talking about, do the following:
- Run the app
- Note that the grid is currently sorting on the Id column in ascending order
- Go to the last page
- Click the "Add New Item"
- Set the Id to 550 and enter First Name, Last Name, and Position
- Click "Save Changes" or "Add New Item"
- The inserted row that was at the bottom of the grid has been moved to the top, ignoring the sort order
Can anyone point out what I'm doing wrong?
Thanks
Thanks