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

[Solved] Setting Initial Filter with Custom Server Binding

1 Answer 38 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.
Andrew
Top achievements
Rank 1
Andrew asked on 07 Mar 2011, 03:31 PM

I have a grid control which uses custom server binding.  In addition, I set the filter initially as indicated in your demonstration code below:

<%= Html.Telerik().Grid(Model)
     .Name("Grid")
     .Filterable(filtering => filtering.Filters(filters =>
     {
          filters.Add(o => o.ContactName).StartsWith("Paul").And().EndsWith("Wilson");
     }))%>

When the page loads the filters are set on the grid control but the data isn't filtered.  If I click on the column with the filter icon, I can see the filters and I can then click the Filter button which applies the filter, but it doesn't do it automatically when the page loads.  Is there a way to apply an initial filter on custom server bound grids?

Thanks.
Andrew

1 Answer, 1 is accepted

Sort by
0
praveen kumar
Top achievements
Rank 1
answered on 28 Dec 2011, 03:07 AM
hi Andrew,

can you please attach the project, i might give the solution for you.

Praveen
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
praveen kumar
Top achievements
Rank 1
Share this question
or