+1-888-365-2779
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
    Registered:
    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))
          {
          filteredItems.Add(item);
         totalItemTest = totalItemTest  + 1;
          }
    }

    Thanks,
    ~Pik
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    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