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

today's date in FilterExpression

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ahmed Malik
Top achievements
Rank 1
Ahmed Malik asked on 06 Aug 2010, 12:28 PM
Hi Guys,

I am trying to add today's date into the FilterExpression for the news item control. is there any parameter that does that?
My problem is that I have two news item lists and a news archive control on the same page, I want the newsarchive controls only one of the news lists and need the other one to show the latest news, whilst for now it is effecting both when someone clicks on the newsarchive.

Many Thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Dimitrov
Telerik team
answered on 08 Aug 2010, 12:36 PM
Hi Ahmed Malik,

The parameter is #now. If you have two controls on the same page, both will be affected when filtering is performed. You can create a custom class that inherits from NewsView and override CreateChildControls where you can check clear the QueryString parameter and the control will not be filtered. Another option would be to create a custom control that displays your news items as a list using the same template - ListPageMaster that is used by the default NewsView control. 

All the best,
Ivan Dimitrov
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
General Discussions
Asked by
Ahmed Malik
Top achievements
Rank 1
Answers by
Ivan Dimitrov
Telerik team
Share this question
or