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

46738Re: [ydn-javascript] Re: Is it possible to setup TreeView to keep it's state?

Expand Messages
  • Satyam
    Mar 21, 2009
    • 0 Attachment
      Nodes don't have any oData property but a "data" property.



      malutanpetronel escribió:
      > I've also tried without success to expand some nodes with a property stored in string like bellow :
      >
      > tree.subscribe("expandComplete", function(node, string) {
      > tree.unsubscribe("expandComplete");
      > for(var i=0; i < node.children.length; i++){
      > var pozid = node.children[i].oData.pozid;
      > alert(","+pozid+",");
      > if(string.indexOf(pozid)!=-1){
      > node.children[i].expand();
      > }
      > }
      > });
      >
      > drawFirstLevel();
      >
      > for(var i=0; i < tree.getRoot().children.length; i++){
      > var node = tree.getRoot().children[i];
      > var pozid = node.oData.pozid;
      > if(string.indexOf(pozid)!=-1){
      > node.expand();
      > }
      > }
      >
      > but no success! Any ideea ?
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 8.0.238 / Virus Database: 270.11.22/2015 - Release Date: 03/20/09 19:01:00
      >
      >
    • Show all 21 messages in this topic