EasyUI Forum
September 13, 2025, 12:25:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid deleteRow and MVC  (Read 8599 times)
jingalls
Newbie
*
Posts: 4


View Profile
« 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?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!