EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jingalls on December 21, 2012, 02:03:48 PM



Title: Datagrid deleteRow and MVC
Post by: jingalls on December 21, 2012, 02:03:48 PM
I am using the datagrid in an ASP.NET MVC application and I'm having an issue with the deleteRow method.  I call this method when a delete link is clicked in the row and the grid looks to perform properly as the row disappears from the screen.  The issue that I'm having is that the underlying table that the grid is wrapping doesn't get modified at all so when I post the form, I still have all the records that were originally in my datagrid posted back to the server. 

I should not that I am not loading the data for the grid via the url loading, but I instead am writing out the table with all the rows when the page loads and then using the datagrid to wrap that table.  I'm not sure if this is a valid way to go about using this plugin or not but other than the delete command I haven't had any issues with it.

Is there something else I need to be doing to get the data to post properly or do I need to manipulate the underlying table on a delete as well as calling the deleteRow on the datagrid?