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

Default filter to get last 5 days data on load of rad grid

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dheeraj
Top achievements
Rank 1
Dheeraj asked on 09 Jun 2010, 05:28 AM
Hi,
     In my rad grid currently i am applying a default filter in Filter expression like(FilterExpression = "([JourneyClass] NOT LIKE '%Economy%')) and  I want to apply one more default filter onload of grid so that it should load the Journey data of last seven days only.
For second the db query like (select * from Journey where JourneyDate >= dateadd(day, datediff(day, 0, getdate()), -7)).this query is working fine in DB. But I have no idea how to put it for default filtering odf rad grid with the condition ((FilterExpression = "([JourneyClass] NOT LIKE '%Economy%')) ).

Please help me regarding this.

Regards,
Dheeraj

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 14 Jun 2010, 01:17 PM
Hi dheeru y,

To see more information along the lines of the requested functionality, please refer to the following article:

http://www.telerik.com/help/aspnet-ajax/grdapplyingdefaultfilteroninitialload.html

I hope it gets you started properly!

Kind regards,
Yavor
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.
Tags
Grid
Asked by
Dheeraj
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or