This is a migrated thread and some comments may be shown as answers.

Searching a row

3 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
naveen veda
Top achievements
Rank 1
naveen veda asked on 02 Mar 2009, 10:14 AM
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,

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Mar 2009, 11:35 AM
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
0
Justin
Top achievements
Rank 1
answered on 03 Sep 2009, 07:48 PM
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
0
Justin
Top achievements
Rank 1
answered on 03 Sep 2009, 07:57 PM
Never mind - now it is working fine.  Not sure what happened there.

Justin
Tags
Grid
Asked by
naveen veda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Justin
Top achievements
Rank 1
Share this question
or