The following API methods of DataView have been deprecated: enableSelection(), disableSelection(). These methods are still available but not recommended for use.
Instead of the methods, use new enable(), disable() methods of the selection object:
// enables selection of items
dataview.selection.enable();
// disables selection of items
dataview.selection.disable();
1) In v6.4 some methods, properties and events of the Combobox API have been renamed. The new names bring more clarity and precisely describe the actual functionality.
Up to version 6.3 | From version 6.4 |
Methods | |
dataview.edit() | dataview.editItem() |
Events | |
dataview.events.on("ContextMenu", function(){}) | dataview.events.on("itemRightClick", function(){}) |
Properties | |
editing | editable |
2) The multiselectionMode
property is deprecated. Starting from the version 6.4 , it is possible to set the mode of selection of multiple items using the multiselection
property of DataView.
The following API methods have been deprecated: getFocusIndex(), setFocusIndex(). These methods are still available but not recommended for use.
Instead of using the getFocusIndex() method, you can get the index of an item in focus as follows:
var id = dataview.getFocus();
var index = dataview.data.getIndex(id);
But we recommended you to use the corresponding getFocus()/setFocus() methods for getting the id of an item in focus and setting focus to an item by its id:
dataview.getFocus(); // -> "item_id"
dataview.setFocus("item_id");
Back to top