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

dataBound event fired when filtering

3 Answers 629 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Arik
Top achievements
Rank 1
Arik asked on 20 Dec 2017, 01:14 PM

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

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Dec 2017, 09:48 AM
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.
0
Arik
Top achievements
Rank 1
answered on 21 Dec 2017, 10:52 AM

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

0
Dimitar
Telerik team
answered on 22 Dec 2017, 08:25 AM
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.
Tags
MultiSelect
Asked by
Arik
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Arik
Top achievements
Rank 1
Share this question
or