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

[Solved] Telerik mvc grid clear filter option not working

0 Answers 13 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.
Vamsi
Top achievements
Rank 1
Vamsi asked on 31 Jan 2013, 05:20 AM
I'm using telerik's MVC grid control in one of my project, my code looks something like this

    @(Html.Telerik().Grid(Model).DataBinding(dataBinding => dataBinding.Ajax()
            .Name("Grid")
            .Columns(columns =>
            {
                columns.Bound(o => o.OrderID).Width(100);
                columns.Bound(o => o.ContactName).Width(200);
                columns.Bound(o => o.ShipAddress);
                columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);
            })
            .Scrollable(scrolling => scrolling.Enabled((bool)ViewData["scrolling"]))
            .Sortable(sorting => sorting.Enabled((bool)ViewData["sorting"]))
            .Pageable(paging => paging.Enabled((bool)ViewData["paging"]))
            .Filterable(filtering => filtering.Filters(filters => filters.Add(o => o.RoleId)))
    ) 

The problem here is that when I click the clear filter button on the grid's column, it doesn't work, as the filter data is always posted back to the server(even on clear filter) and after clearing the filter i guess the filter is reapplied. Is this a bug control or am I doing anything wrong, are there any workaround's for this issue 
Tags
Grid
Asked by
Vamsi
Top achievements
Rank 1
Share this question
or