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

Disable AutoPostback on Filter Menus

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kencox
Top achievements
Rank 1
kencox asked on 16 Jul 2009, 03:06 PM
How do I configure the filter menus so they don't auto postback? I want the user to make all the choices and then trigger the filtering on a button click.

Thanks,

Ken
Microsoft MVP [ASP.NET]

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Jul 2009, 03:54 PM
Hello Ken,

To achieve your goal you will need to wire the OnCommand client event and check whether the args.get_commandName() is "Filter". Hence you can cancel the action with calling args.set_cancel(true).
From here you will need to collect the filter expression from args.get_commandArgument(). Thus you will be able to use FilterExpression collection on the client and return the correct filter expression on the server, filter the grid's data and rebind.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
kencox
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or