UXGridView Filtering Question

4 replies. Last post: June 7, 2011 11:46 PM by bap
Tags :
  • (None)
bap Member

I need to filter the GridView by adding a custom filter to a last name column....where the filter operator = "StartsWith".  The filter editor must allow the user to enter 1 or more letters of the last name.  Here's how i see the filter working:

  1. the user clicks on the filter icon on the Last Name column.
  2. a custom filter editor is displayed with a textbox.
  3. the user enters 1 or more letters in a text box and click apply
  4. the FilterDescripter on the QueryDescripter is updated and the QueryChanged event is called.

Currently, all your examples show filtering by picking values from a checkbox in a list. 

Can this be done?  If so, can you direct me to some sample code?  Thanks!

Answers

Hello,

Thank you for appreciate BP.

To filter data in UXGridView by inputing value in textbox without picking values in checkbox, unfortunately your scenario can't handled it yet so far. UXGridView filter show filtering by picking values from a checkbox. It is use to know what existed values in data. So when the inputed value doesn't exist in database, the UXGridView will not bind any data, then you may not get an empty data in UXGridView. 

If you still want to do the scenario, I suggest you to use TextBlock beside UXGridView to input the value that should be bind to the UXGridView.


Hope this helps.
Riendy

bap Member

Yes, that is exactly what i did.  I figured out how to update the querydescriptor.FilterDescriptors via MVVM using search fields next to the GridView. (see picture) Filtering is working great. Thanks!

1 attachment

All Replies

Hi BP, 

I got the point as you expect for result. Your question has been forwarded to our developers to know how to filter in UXGridView without picking checkBox in a list. I will let you know for the updates from them.


Thank you.
Riendy

bap Member

btw.  your developers are incredible.  i've spent the last 2 weeks learning your clientUI framework and absolutely love it!  keep up the great work!

Hello,

Thank you for appreciate BP.

To filter data in UXGridView by inputing value in textbox without picking values in checkbox, unfortunately your scenario can't handled it yet so far. UXGridView filter show filtering by picking values from a checkbox. It is use to know what existed values in data. So when the inputed value doesn't exist in database, the UXGridView will not bind any data, then you may not get an empty data in UXGridView. 

If you still want to do the scenario, I suggest you to use TextBlock beside UXGridView to input the value that should be bind to the UXGridView.


Hope this helps.
Riendy

bap Member

Yes, that is exactly what i did.  I figured out how to update the querydescriptor.FilterDescriptors via MVVM using search fields next to the GridView. (see picture) Filtering is working great. Thanks!

1 attachment
All times are GMT -5. The time now is 11:35 AM.
Previous Next