string search in RadGrid

Thread is closed for posting
3 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 29 Jun 2007 Link to this post


    RadGrid for ASP .NET version

    RadControls for ASP .NET AJAX version

    4.6.2 and later

    2008.1.415 and later

    .NET version

    2.0 and later

    Visual Studio version

    2005 and later

    Programming language


    Browser support

    all supported by RadGrid for ASP .NET

    all browsers supported by RadControls for ASP .NET AJAX

    There are many scenarios in which one needs to find a given string within RadGrid, and select the record to which this string belongs. This implementation uses four buttons which enable the user to FindFirst, FindNext, FindLast, FindPrevious occurances of a predefined string. The particular implementation checks for the value of a boolean field, but the very same approach is applicable for a string value.
  2. Mike Theos
    Mike Theos avatar
    3 posts
    Member since:
    Dec 2007

    Posted 18 May 2011 Link to this post

    Is there a way to search multiple pages? My grid has over 1,500 items in it and the user would like to search for strings. My page size is 50 so there are 30 pages. I could set the page size to a higher number, but I would rather not do that. Also, is there a way to have the selected row be placed at the top of the grid so the user doesn't have to scroll to find it? On a page with 50 rows that is not so bad, but to have to find the highlighed row in over 1,500 rows is not practical.

    Thank you.

    RadGrid version 2010.3.1109.40
    Visual studio version 2010
    .net framework 4.0
  3. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 25 May 2011 Link to this post

    Hi Mike,

    To achieve your goal, you can try one of the below approaches:
        - Filter the grid, either by building a filter expression or using RadFilter. As a result, only the items which contain the particular text will appear in the grid
        - Find the record having the text at database level and then calculate on which page and with what item index the item in the grid is. Then navigate to that page and select the desired item.

    All the best,
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.