Hi,
I use a datatable with
select: “row”
multiselect: “true”.
When i select many choices and i tick the checkboxes fast enough the method
$$(“mydatatable”).getSelectedItem(true);
doesn’t return all rows but a part of the selected.
Hi,
I use a datatable with
select: “row”
multiselect: “true”.
When i select many choices and i tick the checkboxes fast enough the method
$$(“mydatatable”).getSelectedItem(true);
doesn’t return all rows but a part of the selected.
Hello!
Can you, please, show a snippet of your implementation?
The method <a href = "https://docs.webix.com/api__selectionmodel_getselecteditem.html">getSelectedItem</a>
returns currently selected item or an array of items
The method <a href = "https://docs.webix.com/api__selectionmodel_getselectedid.html">getSelectedId</a>
returns the single item id or an array of ids
Here is an example. If you need to get checked (not selected) items, then you can gather items. Using the method <a href = "https://docs.webix.com/api__link__ui.datatable_find.html">find()</a>
that is returns rows that match the criterion
// finds all rows which title match the given value
table.find(function(obj){
return obj.title.toLowerCase().indexOf(value) != -1;
});