question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update currently selected nodes as ajax data comes in

See original GitHub issue

Currently, if you set the source of the tree before the node information has been received (via ajax), then the id of the node is shown. 1 (unknown) This is expected since the label data isn’t there yet. However, when you open the children of the node, I can see that its pre-selected in the tree area, which is great, but it should also update in the “selected/search area” as soon as you open the parent node and data is loaded.

The problem corrects itself if you un-select the node and re-select the node, which fixes all nodes it has data for.

Hopefully this should be as easy as just calling an update method when we expand the parent.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Alig96commented, Apr 8, 2018

Works perfectly! 👏🎉

Thank you!

0reactions
riophaecommented, Apr 8, 2018

Hi, just released a new version v0.0.16! Please upgrade and let me know if it has fixed the bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery select and update head node in ajax $.get call
jquery select and update head node in ajax $.get call ... I want to achieve the really easy task to replace the head...
Read more >
RadTreeView and Updating AjaxPanels in UI for ASP.NET AJAX
In my project I have a RadTreeView and a RadToolbar, when a node is selected on the RadTreeView I want to update the...
Read more >
jQuery AJAX POST Tutorial - AirPair
PHP expert Jorge Colon walks through the basics of AJAX requests using jQuery and gives troubleshooting tips.
Read more >
AJAX The XMLHttpRequest Object - W3Schools
The XMLHttpRequest object can be used to exchange data with a server behind the scenes. This means that it is possible to update...
Read more >
Ajax - Developer guides - MDN Web Docs
Asynchronous JavaScript and XML, or Ajax, is not a technology in itself, but rather an approach to using a number of existing technologies ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found