Try Now
More in this section

Forums / General Discussions / Modify display search result

Modify display search result

2 posts, 0 answered
  1. Pik Lee
    Pik Lee avatar
    142 posts
    13 Aug 2012
    23 Jun 2010
    Link to this post
    How do I modify the search result.

    <asp:Literal ID="ResultsStats" runat="server">Found {0} pages for "{1}" </asp:Literal>

    I would like to display the totalItemTest from the code below.

    foreach (ResultItem item in dataSource)
    . . .
    if (perm.CheckDemand(CrudRights.View))
         totalItemTest = totalItemTest  + 1;

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    23 Jun 2010
    Link to this post
    Hi Pik Lee,

    What is totalItemTest. Is it an integer? What value it represents ? If this is an integer value or list you just set the value as a Text property of a Literal control.

    Sincerely yours,
    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