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

RadGrid - filter issue. Any suggestions?

3 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James McQuade
Top achievements
Rank 1
James McQuade asked on 23 Feb 2009, 06:18 AM
Quick correction --> Timer tick is at 15 seconds and not 15 msecs as mentioned earlier.

Look forward to your suggestion.

Thanks


I'm using the Q3 2008 version of the RadGrid and am facing a limitation that needs a workaround. Basically the Web page containing the grid uses a timer to poll for data from the SQL Cache, in the NeedDataSource event.

The problem is that the Timer tick is set at 15 msecs and so when the user types in some text to filter on, on every tick (which in turn will fire the NeedDataSource) , the filter box gets cleared. I've already implemented a Persistence solution using Profile to store the filter expression/pattern across postbacks but in this case the filter action has not been invoked yet.

How can I preserve the text across timer ticks till the user invokes a filter action using the context menu?

Thanks

3 Answers, 1 is accepted

Sort by
0
James McQuade
Top achievements
Rank 1
answered on 24 Feb 2009, 01:26 AM
Seenu or Princy -- please weigh in.

Let me rephrase my question -- for a grid that is being hammered with updates every 15 secs, is there a way to "freeze" the filter row so that text entered in the filter box of any column does not keep getting cleared with every update ? FYI, as noted below, I'm sourcing the data during the NeedDataSource event.
 
Thanks
- Arun
0
Arun
Top achievements
Rank 1
answered on 24 Feb 2009, 02:47 PM
Telerik Team :  Stephen/Sebastien/Rosen

Any workaround ? Is there a client side event I can handle to when the filter text box is manipulated to maybe stop the updates during that time ?

Thanks
0
Sebastian
Telerik team
answered on 25 Feb 2009, 10:51 AM
Hello Arun,

You may consider locating the respective filter textbox inside the grid filtering item as shown here and intercept its onkeypress or onkeydown client event to determine whether the end user is currently typing in it. If so, you can include your custom logic which to reset or stop the timer while a filter value is entered.

The precise implementation strictly depends on your development schema and events workflow.

Kind regards,
Sebastian
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
James McQuade
Top achievements
Rank 1
Answers by
James McQuade
Top achievements
Rank 1
Arun
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or