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

Persistent filter in GridViewMultiColumnComboBoxColumn grid

2 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Test
Top achievements
Rank 1
Test asked on 16 Oct 2019, 10:33 AM

Let's say :
1. In my gridView I selected first cell in a row (which is a GridViewMultiColumnComboBoxColumn)
2. I go and prefiltered my items in "sub" grid using filters
3. Choose one of rows
4. Value was copied to "main" grid ...perfect!

until now everything is fine but...

4. Now I go to next row (in my "main" gridView) and expect that after opening first cell (GridViewMultiColumnComboBoxColumn) items will be prefiltered but they are not.

How can I achive such a behavior?



I was trying to save my FilterDescriptor (from previous row) and add it to new row on event GridView_PreparedEdit like:

myCell.ItemsSourceProvider.CollectionView.FilterDescriptors.Add(dataPointNameFilter);   

but then I saw (Call Stack) that GridViewMultiColumnComboBoxColumn if there is a FilterDescription filter (at least one) set, just before drop down with "sub" grid will be shown is raising FilterDescriptors_CollectionChanged where he cleaning FilterDescriptor anyway and therefore reset previous filter state.

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 21 Oct 2019, 10:22 AM

Hello John,

Thank you for the provided details. 

I am currently investigating this behavior and I need more time. I will contact you again tomorrow with further information about your case.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dinko | Tech Support Engineer
Telerik team
answered on 22 Oct 2019, 01:52 PM

Hi John,

Thank you for your patience.

I need to point out that in GridViewMultiColumnComboBoxColumn, filters in one cell will not be used for another cell. The control does not support this behavior. After debugging some time, I have found a possible solution to transfer the filters from one dropdown content to another. I have prepared a sample project which demonstrates this approach. I will recommend you to test this approach further, so it covers all your scenarios.

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Test
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or