jQuery UI Widgets Forums Navigation Tree JqxTree rename item

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • JqxTree rename item #113794

    ae50042
    Participant

    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,
    Giorgio

    JqxTree rename item #113804

    Hristo
    Participant

    Hello 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-jqxtreegrid

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    JqxTree rename item #114044

    ae50042
    Participant

    Thanks 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 used selectItem 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 use ensureVisible property, but there is still a visual glitch when the node is not visible
      I tried using scrollTop 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.

    JqxTree rename item #114052

    Hristo
    Participant

    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 Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.