Loading ...
Sorry, an error occurred while loading the content.

Re: dynamic load treeview expandComplete event

Expand Messages
  • ozgursusoy
    ... do is; ... mod_parent.subscribe( expandComplete ,update_treeview_select_node(mod_parent,key_field,key_new)); ... got it working using a custom event fired
    Message 1 of 2 , Jun 3, 2008
      --- In ydn-javascript@yahoogroups.com, "ozgursusoy" <ozgursusoy@...>
      > i've set up a treeview with dynamic loading. now what i'm trying to
      do is;
      > once a child node is edited, use removeChildren and expand on the
      > parent node to reload the children and then reference the modified
      > node. trying to do this referencing on a handler for the
      > expandComplete event for the parent node:
      > tree.removeChildren(mod_parent);
      > mod_parent.expand();
      > and the handler function is using:
      > node_to_select = tree.getNodeByProperty(key_field, key_value) ;
      > however, this is not working and while debugging i noticed that this
      > event is fired before the data is loaded and node expanded?!
      > any thoughts?

      got it working using a custom event fired on the AJAX response handler
      but if there's a better way would love to hear
    Your message has been successfully submitted and would be delivered to recipients shortly.