Searching a row

4 posts, 0 answers
  1. naveen veda
    naveen veda avatar
    47 posts
    Member since:
    Jul 2012

    Posted 02 Mar 2009 Link to this post

    Hi,

    How can we search for a particular row in a grid and how to highlight the row.

    i am using radgrid. i am developing one page for searching the employee details.

    first i have bind the grid with data from database.

    when i click on the find button it find the employeeid in the grid and highlight the particular row.



    thanks,
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Mar 2009 Link to this post

    Hi Naveen,

    Go through the following code library submission which shows how to search and highlight keywords in radgrid. You can use a similar approach to highlight the row which contains the search keyword.
    SearchAndHighLightKeyWords



    Thanks
    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Justin
    Justin avatar
    35 posts
    Member since:
    Apr 2008

    Posted 03 Sep 2009 Link to this post

    Hi - I have a question about the sample code referenced in previous post.  I was looking for this same functionality (highlighting the "search" text within rad grid results...

    While the code is working, it does not appear to be producing the desired result.  Meaning, instead of highlighting the search text what the user sees is the replaced characters. 

    ie:  instead of saying "bob" it says "<span class=highlight>bob</span>"

    Any ideas on why the html code is not being parsed within the radgrid cell(s)?

    Justin
  5. Justin
    Justin avatar
    35 posts
    Member since:
    Apr 2008

    Posted 03 Sep 2009 Link to this post

    Never mind - now it is working fine.  Not sure what happened there.

    Justin
Back to Top