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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Esmail
    Esmail avatar
    5 posts
    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
    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