Skip to main content
1-Visitor
March 1, 2017
Solved

In tree widget if i want 2nd level data as default selected. how to do that?

  • March 1, 2017
  • 1 reply
  • 2338 views

I have 3 levels in tree and i want 2nd level data to be selected default when tree is loaded. Please tell  me how to do that

Best answer by nbhagtani

Am able to achieve it by writing service which returns me first child of first node(2nd level) and bind that data to selected label and value.

1 reply

5-Regular Member
March 1, 2017

Nisha, did you try setting that level in the SelectedValue or SelectedLabel property of the tree widget

nbhagtani1-VisitorAuthor
1-Visitor
March 1, 2017

what value i need to give to selected label and value?

5-Regular Member
March 1, 2017

Nisha, i suppose you'll need the label as the name of the sub level (2nd level) to be passed to either of these or probably to the SelectedBreadcrumb property, you can test that by binding to one of those using the Configure Widget wizard. Sorry i have not tested this myself so can't name it exactly.