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

Grid Filtered Column with multi option does not update values after datasource.data()

4 Answers 1719 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 14 Nov 2018, 03:29 PM

example : https://dojo.telerik.com/ESANeZIt

after you open filter column menu on field1 column the list of checkboxes never changes if you fetch new data.

after investigating, i found that itemchange event datasource['_change']({ action: 'itemchange', items: [] }) refreshes grid filters, but this action breaks listviews bound to datasource.

really is difficult to have custom code for every grid in my application and every datasource.data().

can i expect correct behavior ?

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 16 Nov 2018, 09:03 AM
Hi John,

When filter multi checkboxes are used, they are populated only once, when the respective filtering menu is opened for the first time. This ensures good performance and avoids repetitive and unnecessary HTTP requests. By design, the checkboxes's data is refreshed automatically in the following cases:

  • the Grid dataSource is replaced via the setDataSource method
  • a Grid data item is added, removed or modified

Below you will find a modified version of the sample where the data is replaced using the setDataSource method and the options of the multi filter are updated accordingly:



Regards,
Georgi
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
omar
Top achievements
Rank 1
Veteran
answered on 12 Dec 2020, 01:54 AM

Is there a databound event on the multi checkboxes? The dataset that populates the multi checkboxes takes time to load and i want a way to target the Select All option. However, i cannot target it if the options from the checkbox haven't been populated.

 

0
Georgi
Telerik team
answered on 15 Dec 2020, 11:57 AM

Hi Omar,

The multi check filter has a refresh method which is triggered after the checkboxes are populated. Please refer to the following dojo for better understanding:

Does the refresh method work for you?

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
omar
Top achievements
Rank 1
Veteran
answered on 04 Feb 2021, 11:56 PM
yes thank you Geirgui!
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Georgi
Telerik team
omar
Top achievements
Rank 1
Veteran
Share this question
or