Hello,
I'd like to set the focus on a tree node after loading the page.
I try to do it using a javascript as described on post
Set Focus on an Inputfield after displaying alert message
But this does not seem to work for tree nodes. Maybe it's because of tree nodes not being extended from class component?!
Thanks for your ideas,
regards
Bastian Distler
Once a guru said: "life would be so much easier if one could see the source code". And it is true. With a few lines code you should be able to show us what you are trying to do.
"Maybe it's because of tree nodes not being extended from class component?" There is no real concept of class component in the browser. I wonder whether you are refering to CSS classes. Either way, be very careful in programming to close to the rendered HTML.
Also, I am not so sure about the real beenfit of focussing a node in the tree. Hmmm...
Add a comment