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

[Solved] UpdateModel not wokring with Telerik MVC Grid

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shobana
Top achievements
Rank 1
Shobana asked on 25 Jun 2012, 05:07 AM
Hi,

I am using Telerik MVC grid version "2012.1.419".
We are using Toolbar template for grid - Add, edit, delete.
When I try to edit and update the data, the corresponding server function is called for update but the model is not updated in the Update action method?

Please provide me a soluton to update the model from grid to db.

Thanks,
Shobana

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 27 Jun 2012, 10:42 AM
Hello Shobana,

We are not aware of such issue. I would like to ask you to share a small project which replicates the issue so we can track what exactly causes the failure.
Also I am not sure what exactly do you mean by "We are using Toolbar template for grid - Add, edit, delete." - do you mean that you have custom button in the toolbar which puts a selected row into edit mode?

Kind regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Shobana
Top achievements
Rank 1
answered on 27 Jun 2012, 11:28 AM
When the TryUpdateModel() method is used to update the edited data from the grid to the Update method of the grid, the model object is not updated by the new values.

I found out the cause for the issue --- before I gave the bound columns as .bound("ID") and now I changed as .Bound(o=>o.ID) and after that I am able to use TryUpdateModel() to update the edited data to the model.

Thanks for the reply....
Tags
Grid
Asked by
Shobana
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Shobana
Top achievements
Rank 1
Share this question
or