Try Now
More in this section

Forums / General Discussions / Search function

Search function

2 posts, 0 answered
  1. Pik Lee
    Pik Lee avatar
    142 posts
    13 Aug 2012
    09 Jun 2010
    Link to this post
    For the search function in Sitefinity, can the search result display only based on certain roles. For example, personA has roleA and roleB, when personA does a search, only display the result where roleA and role B have access to. Can someone please show me some example or direction.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    09 Jun 2010
    Link to this post
    Hello Pik Lee,

    You need to filter the SearchResults control datasource, create a new datasource and bind your custom control to it. You will find a sample code that explains how to create a custom control that inherits from SearchResults and replace the datasource here.

    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.
2 posts, 0 answered