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

[Solved] Drop Down List not active for all the rows

0 Answers 23 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 17 Jun 2012, 04:40 PM
Hey guys, 
                      I have added drop down list in all the rows in my grid. However, only the drop down list of the first row is active. The rest are not working in a sense that they dont allow me to choose an item. Any hlp on how to make all the drop down lists active? 
Here's the code that creates the column containing the drop down list: 

@(Html.Telerik().Grid<MyModel>()
                                 .Name("Grid")
                                  .Columns(columns =>
                                  {
                                      columns.Bound(a => a.Id).ClientTemplate(
                                       Html.Telerik().DropDownList()
                                       .Name("RoleList<#= Id #>")
 
                                        .Items(items =>
                                               {
                                                   items.Add().Text("Item #1").Value("0");
                                                   items.Add().Text("Item #2").Value("1");
                                               })
                                    .ToString()
 
 
                                ))
Tags
ComboBox
Asked by
John
Top achievements
Rank 1
Share this question
or