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

[Solved] Filtering with sorting not work in example project

4 Answers 69 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.
Luke jj
Top achievements
Rank 1
Luke jj asked on 27 Apr 2010, 11:46 AM

Hi all,

I'm using grid with filtering panel and I have noticed that strange behavior with Filtering example (http://demos.telerik.com/aspnet-mvc/Grid/Filtering?theme=default). On page from this link when I set filter for "Contact Name" and then sort any column it works ok. Also paging works ok. But when I run this project locally then while sorting or paging I lose filter. See screen attached. 

This version http://demos.telerik.com/aspnet-mvc/Grid/Filtering?theme=default is different than this which is avaliable for download (2010_1_309)?

I'm making sth wrong or this is bug?

I have similar problem in my app (with filtering panel) where I also losing filtering after sorting and paging. 

Regards,

Luke

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Apr 2010, 12:22 PM
Hi Luke jj,

I think you are observing the problem described in this forum thread. It manifests itself only during server binding. The online demo you are referring to is using Ajax binding hence the problem does not appear.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Luke jj
Top achievements
Rank 1
answered on 27 Apr 2010, 12:43 PM

Ok,

so what changes should I make in filtering.aspx in example project to start it fully working on my localhost? Because there is already Ajax call 

<%= Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(o => o.OrderID).Width(120);
columns.Bound(o => o.Customer.ContactName).Width(200);
columns.Bound(o => o.ShipAddress);
columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(100);
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("_Filtering", "Grid"))
.Pageable()
.Sortable()
.Filterable(filtering => filtering
.Filters(filters => filters
.Add(o => o.Customer.ContactName).StartsWith((string)ViewData["startsWith"])
))
%>

0
Accepted
Atanas Korchev
Telerik team
answered on 27 Apr 2010, 12:52 PM
Hi Luke jj,

The code looks fine. Perhaps the problem you are observing is due to a bug fixed in the current official release. Which version are you using? I suggest you try the build attached in this support thread.

If this does not help I will ask you to send us a sample project which shows the problem you are experiecing. Since our forums do not allow attachments you should host the project somewhere.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Luke jj
Top achievements
Rank 1
answered on 27 Apr 2010, 01:30 PM

It works ok in version 2010.1.416. I used version  2010.1 309 from 

http://www.telerik.com/account/downloads/product-versions/single-version.aspx?pmvid=0&pid=697. I thought that it's latest.

Thanks for help :)

Tags
Grid
Asked by
Luke jj
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Luke jj
Top achievements
Rank 1
Share this question
or