jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • MatcherAny
    Participant

    I use Google Translate

    Thank you very much Hristo
    Use ‘rowSelect’ to get the current row, But how to get the details of the parent node?
    The use of loops is not elegant ……

    var parentNode = null;
            var rows = $scope.treeGridSettings.apply('getRows');
            for (var i = 0; i < rows.length; i++) {
                var node = rows[i];
                if (selectedNode.parent == node.id) {
                    parentNode = node;
                }
            }
Viewing 1 post (of 1 total)