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

[Solved] List of Model not update in TryUpdateModel

0 Answers 106 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.
Piyush Patel
Top achievements
Rank 1
Piyush Patel asked on 14 Sep 2012, 01:09 PM
Hi All Telerik  team,
I have one problem when Update grid line.

When I Click on Update button on Grid.Post method is fire.I m using TryUpdateModel(Model) to update My model.The Model is update but its child list not update. example like I have Employee class and in that class i have List<empAddress>.so when i update the model the employee model is update but the <empAddress> not update.please reply me. I want to update list also which in the Employee model.

public class Employee
{

 

public string AccountId { get; set; }

 

public string AccountName { get; set; }

public List<EmpAddress> empAddress{ get; set; } // this listNot update TryupdateModel
}

Tags
Grid
Asked by
Piyush Patel
Top achievements
Rank 1
Share this question
or