jQuery UI Widgets › Forums › Navigation › Tree › JqxTree rename item
Tagged: #jqxTree #tree
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 4 years, 4 months ago.
-
AuthorJqxTree rename item Posts
-
Hi all,
I would like to add “rename” functionality for a JqxTree.
As far I know, there is a version with the context menu, but in all examples I saw, the menu display just the voices: “add item” and “remove item”.
Is possibile to add a custom “rename” functionality in the context menu that let the user change the name of an item at runtime?Beside the context menu, are there other ways to acheive that functionality?
Regards,
GiorgioHello Giorgio,
You could use the
updateItem
method for this purpose.
Also, there is another alternative that you could try.
The jqxTreeGrid could be transformed with just one column.
Please, take a look at this example:
https://jseditor.io/?key=jqxtree-created-by-jqxtreegridBest Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comThanks very much Hirsto,
I found a solution for renaming a node using jqxTree component.
I have few more questions:- basically as per requirement my tree is very long and is refreshed every 10sec using ajax call.
I usedselectItem
for selecting the same node before ajax call and it works fine.
The problem arise when I scroll the tree, because after ajax call it scroll at the top.
I tried also to useensureVisible
property, but there is still a visual glitch when the node is not visible
I tried usingscrollTop
property, but nothing to do.
Is there a way to track scroll position and use later for restore the same div position? - The visual glitch problem described above, could be resolved using jxqTreeGrid?
- Should be possibile to stylish jqxTreeGrid like a jqxTree? for example removing borders of the single column, something
like that?
Thanks very much for your help.
Giorgio.Hello Giorgio,
On the way, as you describe your case I would like to suggest you the jqxTreeGrid, again.
We do not have feedback for a similar case but you could try it.
For this purpose, I would like to suggest the previous example:
https://jseditor.io/?key=jqxtree-created-by-jqxtreegrid
https://jseditor.io/?key=16887316412f11ebbe2e00224d6bfcd5
Please, let me know if you have any other questions.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com - basically as per requirement my tree is very long and is refreshed every 10sec using ajax call.
-
AuthorPosts
You must be logged in to reply to this topic.