TreeView.setParentSelector¶
Устанавливает функцию выборки из элемента коллекции идентификатора родителя.
Syntax¶
TreeView.setParentSelector(value)
Parameters¶
Name | Type | Description |
---|---|---|
value |
Script | Функция выборки из элемента коллекции идентификатора родителя. |
Returns¶
Нет.
Examples¶
var parentSelector = function (context, args) {
return args.value ? args.value['parentId'] : null;
}
treeview.setParentSelector(parentSelector);