Webix tree

Hi,
How to show opened tree node selected by default?
Thanks,
Mira Karale

on:{
   onAfterOpen:function(id){
      this.select(id, false)
   }
}

Hey,
Thanks for replay.
But the scenario is that my tree node is already opened after render and I want to show it selected.
Thanks,
Mira

webix.ui({
  view:"tree",
  select : true,
  activeTitle:true,
  data: [
    { id:"1", open:true, value:"The Shawshank Redemption",
    $selected:true, //method 1
   data:[
      { id:"1.1", value:"Part 1" },
      { id:"1.2", value:"Part 2" }, 
      { id:"1.3", value:"Part 3" }
    ]},
    { id:"2", value:"The Godfather", data:[
      { id:"2.1", value:"Part 1" },
      { id:"2.2", value:"Part 2" }
    ]}
  ],
  ready:function(){ //method 2 - preferred
    this.select("1", false)
  }
});

Thanks its working fine :slight_smile: