I am trying to manually add data to a remote data source. I can add the data and then have the value selected, but the data doesn't seem to sync up.
$('#idhere').data('kendoMultiSelect').dataSource.add({
id: 'id',
value: 'value'
});
$('#idhere').data('kendoMultiSelect').dataSource.sync();
$('#idhere').data('kendoMultiSelect').value('id');
I can see the value in the multiselect, but when I click the x to delete the item from the multiselect I get an error in the console that says: "Uncaught TypeError: Cannot read property 'id' of undefined"
When I break in the code at the line where I call the value() function and check the data source by doing:
$('#idhere').data('kendoMultiSelect').dataSource I can see the value, but when I continue the debugger, a few seconds later when I do the same query I don't see any values in the datasource from the same query.
It looks like someone else is having the same problem that I am: https://stackoverflow.com/questions/27561844/adding-data-after-initialization-of-kendo-ui-multiselect
$('#idhere').data('kendoMultiSelect').dataSource.add({
id: 'id',
value: 'value'
});
$('#idhere').data('kendoMultiSelect').dataSource.sync();
$('#idhere').data('kendoMultiSelect').value('id');
I can see the value in the multiselect, but when I click the x to delete the item from the multiselect I get an error in the console that says: "Uncaught TypeError: Cannot read property 'id' of undefined"
When I break in the code at the line where I call the value() function and check the data source by doing:
$('#idhere').data('kendoMultiSelect').dataSource I can see the value, but when I continue the debugger, a few seconds later when I do the same query I don't see any values in the datasource from the same query.
It looks like someone else is having the same problem that I am: https://stackoverflow.com/questions/27561844/adding-data-after-initialization-of-kendo-ui-multiselect