lathspell

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: expand only the root node of the tree #97928
    lathspell
    Participant

    Hm.. the approach with .click() does not seem to be reliable when using a dynamically loaded tree in opposite to one where the whole data is send immediately. So I've come up with a better solution. Still I don't understand why the setTimeout() function seems absolutely neccessary to make it work.

    As only the nodes of the top level and then the explicitly requested are available, the “path” from top to the requested node has to be defined in the Javascript page e.g. by PHP:

    in reply to: expand only the root node of the tree #97926
    lathspell
    Participant

    Coincidently I spend the last night also wondering how to have a single tree expanded right after loading the page.

    My solution was like this. It also needs this magical setTimeoutFunction(… , 0) which I cannot quite make sense of but then uses

    the .click() function to avoid trying to figure out which jqGrid API functions are neccessary:

    gridComplete: function() {

    in reply to: expand only the root node of the tree #97925
    lathspell
    Participant

    $emplist should be replaced by mylist, I think.

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!