Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Grid and Updating feature
posted

I have a grid with Updating feature turn on using the GridModel class, but when I click on the row the row gets in edit mode and all the data in the row gets deleted. Can you please help with this?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

List<GridColumn> columns = new List<GridColumn>()

{

 

 

 

 

new GridColumn("ID", "ID", "int", "100px"),

 

 

 

new GridColumn("Code", "Code", "string", "100px"),

 

 

 

new GridColumn("Description", "Description", "string", "100px"),

}

 

 

 

 

 

 

 

 

 

GridModel model = new GridModel("grid1", "ID", columns, Url.Action("GetList/"));

 

 

 

GridUpdating updating = new GridUpdating();

 

model.Features.Add(updating);

 

 

 

 

 

return

PartialView(model);

Parents
No Data
Reply Children
No Data