| id | dxTreeList.getSelectedRowKeys(mode) |
|---|
Gets selected row keys.
Selected row keys. Keys are stored in the order users select rows.
"all", "excludeRecursive", or "leavesOnly".
Below is an example of a TreeList with several selected rows:
The getSelectedRowKeys(mode) method called for this TreeList returns different results depending on the mode argument:
-
"all"
Returns all selected row keys.getSelectedRowKeys("all") // returns [2, 5, 8, 9, 6, 10, 4] -
"excludeRecursive"
Excludes keys in recursively selected rows.getSelectedRowKeys("excludeRecursive") // returns [2, 6, 10, 4] -
"leavesOnly"
Returns keys of the end nodes ("leaves") only.getSelectedRowKeys("leavesOnly") // returns [8, 9, 6, 10, 4]
[note] If remote operations are enabled, getSelectedRowKeys retrieves selection from currently loaded rows only.
#####See Also##### #include common-link-callmethods
