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

Disabling "Real-Time" Filtering

3 Answers 47 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Feb 2011, 08:31 PM
Hello,

It appears that there is some difference between how some filter operators work.  For example, when using the "Contains" operator on a string column, the filter is not invoked until Enter is pressed, but when using "Is Greater Than" on a numeric column, the filter updates as keys are pressed. 

Is there any way to disable this "on-keypress"/"real-time" behaviour?  I have found that with large tables it can be very sluggish to re-filter on every key press.  I.e. when wanting to filter on something greater than say "200", it will filter for great than "2" then greater than "20" then finally greater than "200".

Thanks,
Mark.


3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Feb 2011, 01:38 PM
Hello Mark,

I reproduced the behavior that you described. The editor that behaves like this is in fact a RadMaskedTextBox.

I will add the following code to the RadMaskedTextBox so that it updates the Binding after the user has finished typing:

maskedTextBox.UpdateValueEvent = UpdateValueEvent.LostFocus;

This change should make it into one of the next "Latest Internal Build"s. You can follow its status here.

All the best,
Ross
the Telerik team
0
Mark
Top achievements
Rank 1
answered on 22 Feb 2011, 04:02 PM
Awesome - thanks Ross!

Just to be clear.  I notice on the PITS entry that it is logged against Silverlight.  Will this be available in the WPF controls too? 
0
Rossen Hristov
Telerik team
answered on 22 Feb 2011, 04:03 PM
Hi Mark,

The next LIB will be released next Monday. Let me know if there are problems with the filter once you upgrade to the new binaries.

Greetings,
Ross
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DataFilter
Asked by
Mark
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or