This is a migrated thread and some comments may be shown as answers.

Grid doesnt post back to action

3 Answers 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 06 Jul 2015, 09:59 PM
Hi, I am inserting data to a grid using a seperate button  and refreshing the partial view the grid is in, the changes show up correctly, but then the delete/update dont post back to their actions anymore. this only occures when i refresh the partial view that the grid is in.

3 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 06 Jul 2015, 10:50 PM
when i do return partialview("_partialview") , the dataread action of the grid doesnt get called again like it should in order for it to get the new row
0
Jim
Top achievements
Rank 1
answered on 06 Jul 2015, 11:17 PM
sorry for posting alot about this issue but ive spent hours on this, all i want to do is insert data into a grid from a different ajax.begin form, once the button add is clicked in that ajax.beginform it calls an action whichs adds the new record and returns the partial view that contains the grid, this simple process is wasting me too much time
0
Alexander Popov
Telerik team
answered on 08 Jul 2015, 02:17 PM
Hello Jim,

I would suggest using Ajax binding and take advantage of the DataSource'a API. This will allow you to perform all kind of CRUD operations and refresh the Grid without reloading the entire partial view. In case you need further assistance I would ask you to share some code snippets or a sample project that we can examine.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or