Forum Post: Filtering Loses Html Attributes

  • Thread starter Thread starter IramK
  • Start date Start date
Status
Not open for further replies.
I

IramK

Guest
Hello, I have a picklist/Kendo Combobox that I am trying to filter based on its picklist code. My picklist looks like this(I haven't included all the attributes of the select list like we have): User 1 User 2 User 3 User 4 I am performing a filter using the kendo dataSource Filter function: $(document).ready(function() { var _flt = { logic: "or", filters: [] }; // Show only User 3 and User 4 var users = $("#users").data("kendoComboBox"); _flt.filters.push({ field: 'value', operator: "contains", value: "2" }); _flt.filters.push({ field: 'value', operator: "contains", value: "3" }); $('#users').data('kendoComboBox').dataSource.filter(_flt); }); However after the filtering is performed, the options lose their attributes i.e. code and data-message and only id remains. Any suggestions why? Kindly let me know. Cheers.

Continue reading...
 
Status
Not open for further replies.
Back
Top