|
Title: Expend a specific node in TreeGrid Post by: zolotoy on July 22, 2015, 07:55:52 AM I am trying to programmatically open first node in the treegrid after having all nodes collapsed.
Here is my code. In directive as the last line in Link finction: Code: scope.assetTree = $(elem); In controller when data has been received: Code: $scope.assetTree.treegrid('expand', 1);Nothing happens, the first node is not expended. Please help. Thanks Title: Re: Expend a specific node in TreeGrid Post by: yamilbracho on July 22, 2015, 08:23:52 AM Check if the id of your first node is really 1...
Title: Re: Expend a specific node in TreeGrid Post by: zolotoy on July 22, 2015, 08:41:30 AM Console shows it as "1". I tried it too, same.
Title: Re: Expend a specific node in TreeGrid Post by: yamilbracho on July 22, 2015, 11:44:42 AM Do you test as String, say '1'...
Title: Re: Expend a specific node in TreeGrid Post by: zolotoy on July 22, 2015, 11:55:49 AM I tried both a number and a string. The result is very consistent - nothing.
|