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

[Solved] Dropdown refresh issue for a Client Template column

0 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
skaw
Top achievements
Rank 1
skaw asked on 14 Jun 2012, 10:45 PM
I have a drop down for a column in telerik grid that is defined as a ClientTemplate

 

columns.Bound(d => d.GroupID).ClientTemplate((@Html.DropDownList("ddGroups", new SelectList((System.Collections.IEnumerable)ViewData["Groups"], "GroupID", "GroupName", new { style = "width:110px;" })).ToString()).Title("Group").Width("15%")

This column is a part of the child grid that lists all parts in a group.The master grid lists all groups.
I build the master detail hierarchy using http://demos.telerik.com/aspnet-mvc/grid/hierarchyajax

Besides master detail hierarchy i also have editing for both the grids.

Now on server side code inside an action method, when a new group is added the ViewData["Groups"] gets updated with the new group. Even though i rebind the grids and can see Select actions getting invoked (using fidler)  for both parent and child grids the drop down is somewhat not refereshed.Any help is appreciated.
ViewData["Groups"] = client.GetBOMGroups(BOMID);

Thanks!
Tags
General Discussions
Asked by
skaw
Top achievements
Rank 1
Share this question
or