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

5 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    May 2014

    Posted 14 Nov 2018 Link to this post

    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 ?

  2. Georgi
    Admin
    Georgi avatar
    704 posts

    Posted 16 Nov 2018 Link to this post

    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.
  3. omar
    omar avatar
    4 posts
    Member since:
    Jul 2020

    Posted 11 Dec 2020 in reply to Georgi Link to this post

    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.

     

  4. Georgi
    Admin
    Georgi avatar
    704 posts

    Posted 15 Dec 2020 Link to this post

    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/.

  5. omar
    omar avatar
    4 posts
    Member since:
    Jul 2020

    Posted 04 Feb in reply to Georgi Link to this post

    yes thank you Geirgui!
Back to Top