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

Disable postback

1 Answer 142 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 07 Dec 2011, 03:38 PM
Hello,
Below is scenario I want to use:
1. Create custom filters on clientside. Not with RadFilter object!
2. Iterate filters collection and add expressions to RadFilter on clientside.
3. Call applyExpressions() to actually apply filter.

But on 2nd step RadFilter starts postback right after 1st expression is added! This is not what I want.
Problem is the RadFilter a part of custom AJAX control which is inserted to RadWindow's ContentTemplate. RadWindow is placed at the same page as grid. And each time when postback occures, the whole grid will reload. This is not acceptable for us. Can you please help?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 12 Dec 2011, 10:20 AM
Hello Dmitry,

 A postback is always required by the RadFilter control because every time you add a new filter expression it is persisted on the server and later used to construct the actual filter query.
You can try to wrap the RadFilter inside an UpdatePanel or ajaxify the whole content of the RadWindow so that the RadFilter inside it performs asynchronous postback and the grid is not refreshed every time. This help article explains how you can do this: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html 

All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Filter
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or