+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to filter NewsView control in Sitefinity 3.7

How to filter NewsView control in Sitefinity 3.7

2 posts, 0 answered
  1. Esmail
    Esmail avatar
    5 posts
    Registered:
    26 Sep 2011
    26 Sep 2011
    Link to this post
    I want to filter NewsView control in Sitefinity 3.7 so that the top most news according to the publication date should not be displayed.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Sep 2011
    Link to this post
    Hi Esmail,

    If you need to create the filter dynamically you will need to create a control which derives from the NewsView. Once you create a control which inherits it you can override CreateChildControls method and before the base implementation is called you can manipulate this.FilterExpression property to set the filter to proper date range.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered