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

FilterMenu closing on partial postback

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vidyadhar
Top achievements
Rank 1
Vidyadhar asked on 01 Dec 2012, 12:43 AM
Hi,

Am working on a requirement in my application and came across this situation with the Grid FilterMenu during postbacks.
There is a SharePoint WebPart with a RadGrid which is being updated every 10 seconds using a Timer. Filtering is enabled on the grid is being updated in an Ajax way using RadAjaxManager.
The issue is that: when ever a user tries to enter something in the filter text box of a column and tries to select an option from the FilterMenu and if there is a partial postback caused by the timer before the user selects an menu item, the FilterMenu just collapses and has to be reopened to select an option. As the timer's interval is set to 10 seconds, the user has a maximum of just 9 seconds to enter something in the filter text box and select an option from the menu. It would be very annoying for the users if the menu keeps closing every time they try to do some filtering. 

1. Is it possible to have the filtermenu open, after the partial postback, if it was in an opened state before the postback?
2. Is there any property available which indicates the state of the menu if it is open/closed? 

If not, could you suggest any work around for this issue?


Thanks,
Viddy.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 05 Dec 2012, 04:43 PM
Hello Vidyadhar,

You scenario is not supported out-of-the-box and there is no property which indicate the state of the filter menu. Nevertheless I prepared a small sample where I demonstrated how you can achieve that and attached it to this thread.

Greetings,
Kostadin
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
Grid
Asked by
Vidyadhar
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or