This question is locked. New answers and comments are not allowed.
I have a grid where i edit and insert data. On .DataBinding(dataBinding => dataBinding.Ajax().Select i want to pass the grid data back to the controller. Is this possible?
here is my code:
here is the databinding on my grid
in my controller i want to get the rows from my grid:
My reason for doing this is to avoid using Session. I want to preserve the data until the user is ready to submit to the database.
here is my code:
var grid = $("#GridEventDetail").data("tGrid").data;$("#GridEventDetail").data("tGrid").rebind({ grid : grid });here is the databinding on my grid
.DataBinding(dataBinding => dataBinding.Ajax().Select("_SelectEventData", "Event")in my controller i want to get the rows from my grid:
[GridAction]public ActionResult _SelectEventData</span>(List<MyViewDataModel> grid){ string field1 = grid.field1; DateTime field2 = grid.field2;My reason for doing this is to avoid using Session. I want to preserve the data until the user is ready to submit to the database.