dataBound event fired when filtering

4 posts, 0 answers
  1. Arik
    Arik avatar
    6 posts
    Member since:
    Aug 2017

    Posted 20 Dec 2017 Link to this post

    I'm using the kendo-multi-select directive (Kendo for AngularJS) with an array as a data source (no server filtering).
    When I type in the multi select component to filter, the dataBound event is fired along with the 'filtering' event, although the documentation states that this event is "Fired when the widget is bound to data from its data source", which in my case is only once.

    Is this the correct behavior for the dataBound event? Or is it a bug?
    And if that's the correct behavior, what is the difference between the dataBound event and the 'filtering' event?

    Thanks

  2. Dimitar
    Admin
    Dimitar avatar
    633 posts

    Posted 21 Dec 2017 Link to this post

    Hello Arik,

    The dataBound event is triggered when the widget list is bound to its data regardless of the serverFiltering option and this behavior is implemented by design. When filtering the data, the list of the widget is rebound with the new options, thus the event gets triggered.

    The dataBound event also fires upon initial load (depending on the autoBind option), while the filtering event triggers only when the widget is about to filter the dataSource and contains the filter descriptor in the event data.

    Do you have any specific scenario, with which you are struggling to configure the widget? If this is the case, then you can share it here, so that I can have a look. Alternatively, you can open a separate support ticket, where we can continue our discussion. 

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Arik
    Arik avatar
    6 posts
    Member since:
    Aug 2017

    Posted 21 Dec 2017 in reply to Dimitar Link to this post

    Thank you for your reply.

    I personally think that the name and documentation of this event are a bit confusing, as I expected it to be triggered only when the data source is set or changed. Perhaps you could consider updating the documentation to be more clear about this issue.

    Best regards,
    Arik

  4. Dimitar
    Admin
    Dimitar avatar
    633 posts

    Posted 22 Dec 2017 Link to this post

    Hello Arik,

    Thank you for the feedback provided.

    Indeed adding an additional note to the dataBound event will help clarifying the specific filtering scenario. We will consider modifying the API documentation accordingly.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top