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

[Solved] Grid with filtered rows and dropdownlist problem

0 Answers 108 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.
harshada patil
Top achievements
Rank 1
harshada patil asked on 05 Apr 2010, 08:35 AM
I have added one filtered column for status and another column for numbers which contains dropdownlist for numbers.
If I apply filter , it will show filtered records but when I clear filter, it will not clear and shows filtered rows.
If I remove dropdownlist column , It will work properly.
The view is like,

<%Html.Telerik().Grid(Model)
        .Name("grdVersion")
        .Columns(
        columns =>
        {
            columns.Add(o => o.Vesrion)
                .Template(o =>
                {
                %>
                    <%= Html.Encode(o.Vesrion)%>
                <%
             })
                .Title("Version")
                .Width("135px")
                .Filterable(true)
                ;
           

             columns.Add(o => o.Numbers)
                .Template(o =>
                {
                   %>
                    <%=Html.DropDownList("ddlNumbers",new SelectList(new string[]{"1","2","3","4"})) %>
              <%
                })
                .Title("Numbers")
                .Width("132px")
                .Filterable(false);

           
        })
        .Filterable()
        .Scrollable(scrolling=>scrolling.Height(250))       
        .Sortable()       
        .Pageable(paging => paging.PageSize(10))
        .Render();
       
      %>     

please give me suggession.

Thanks.

Tags
Grid
Asked by
harshada patil
Top achievements
Rank 1
Share this question
or