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

[Solved] How to clear filter boxes using client-side API?

4 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleg Medyanik
Top achievements
Rank 1
Oleg Medyanik asked on 05 Oct 2009, 12:37 PM
Hi,
Can i clear all filter using client side API.
I am using get_filterExpressions().clear();
bu i also want to clear values in inputs.

Thank you in advance.

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 08 Oct 2009, 06:32 AM
Hello Oleg,

In this case, you would need to get a reference to the client object of the textbox, and set its valud on the client. You can get a reference to it by using its client id.
I hope this suggestion helps.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Oleg Medyanik
Top achievements
Rank 1
answered on 12 Oct 2009, 08:13 AM
Hi Yavor ,
Can you please show small example - ho do i get Client ID of filter box, for example, if column name = 'Company Name'?
Thanks.
0
Accepted
Yavor
Telerik team
answered on 15 Oct 2009, 09:28 AM
Hi Oleg,

You can get a reference to the filter textbox in the code-behind, as shown in the following article:

http://www.telerik.com/help/aspnet-ajax/grdsettingfiltertextboxdimensions.html

Subsequent to this, you can access the client id of the textbox, and store it on the page, for example in a hidden field, which can be easily accessed on the client, at a later stage.
I hope this information helps.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Oleg Medyanik
Top achievements
Rank 1
answered on 15 Oct 2009, 09:57 AM
Thanks Yavor!
Tags
Grid
Asked by
Oleg Medyanik
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Oleg Medyanik
Top achievements
Rank 1
Share this question
or