hello,
i use a datatable with ‘cell’ selection.
i would like that only certain cells of my datatable can be selected (and not all - default behavior).
is it possible ?
if yes, how ?
thanks you in advance
Fabrice
hello,
i use a datatable with ‘cell’ selection.
i would like that only certain cells of my datatable can be selected (and not all - default behavior).
is it possible ?
if yes, how ?
thanks you in advance
Fabrice
You can use event onBeforeSelect with “return false;”
http://docs.webix.com/api__ui.datatable_onbeforeselect_event.html
Imagine that you can select all cells in your datatable except cells for ‘col1’ column !
how to use onBeforeSelect in this case ?
for information selection mode = “cell”
The onBeforeSelect is a good solution when you are selecting cells by separate clicks.
Currently there is no way to block separate cells when you are using shift-selection to mass select cells, as onBeforeSelect event doesn’t fire in such case.
It will be changed in the next major update.
“The onBeforeSelect is a good solution when you are selecting cells by separate clicks.”
ok
For example i would like that i can’t select any cell of column1 of my datatable.
how to use onBeforeSelect in this case ?
some.attachEvent("onBeforeSelect", function(id){
if (id.column == "column1") return false;
return true;
});
cool it’s ok, thank you maksim !