cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

nbhagtani
12-Amethyst

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

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

ACCEPTED SOLUTION

Accepted Solutions
nbhagtani
12-Amethyst
(To:supandey)

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.

View solution in original post

6 REPLIES 6
supandey
19-Tanzanite
(To:nbhagtani)

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

nbhagtani
12-Amethyst
(To:supandey)

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

supandey
19-Tanzanite
(To:nbhagtani)

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.

nbhagtani
12-Amethyst
(To:supandey)

Am still not able to do it

nbhagtani
12-Amethyst
(To:supandey)

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.

supandey
19-Tanzanite
(To:nbhagtani)

Glad it worked out!

Announcements


Top Tags