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

Client-side filter

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich Coleman
Top achievements
Rank 1
Rich Coleman asked on 10 May 2010, 04:03 PM
Anyone have any examples that show how I would do the following.

I need a radtextbox and a radgrid.  The grid by default shows all the data table's records but when the user starts typing into textbox,  it automatically starts filtering the grid client-side (keyup event).

Would this be something I could use as a guide by changing out the combobox for textbox?  http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/gridinxmlhttppanel/defaultvb.aspx

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 May 2010, 12:27 PM

Hello Rich,

I made a small change in the demo that you pointed in order to achieve the required scenario. Place the RadTextbox on page and in the 'OnKeyPress' evet handler, try the following code snippet.

Javascript:

 
<script type="text/javascript">  
    function OnKeyPress(sender, args) {  
        var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");  
        panel.set_value(sender.get_textBoxValue() + args.get_keyCharacter());  
    }  
</script> 

-Shinu.

Tags
Grid
Asked by
Rich Coleman
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or