Fetch Tree level data into drop down field.

Aasim Khan asked on October 5, 2015 14:35

Hello Team,

We had tree level(2-level) data into custom table and we want to display as tree into dropdown.

Anyone please help me.

For Example -
    A
     |-1
        |- a
        |-b
        |-c
     |-2
        |-p
        |-q
    B
     |-3
        |-x
        |-y

Recent Answers


Brenden Kehren answered on October 5, 2015 14:51 (last edited on October 5, 2015 14:52)

Take a look at the documentation on Hierarchical Viewers and how to display non-hierarchical data. You should be able to place this in a repeater and style it to look like a drop down.

0 votesVote for this answer Mark as a Correct answer

Aasim Khan answered on October 5, 2015 15:00

Hi Brenden, how can i add a webpart when i am creating a new page or editing a page.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on October 5, 2015 16:33

You may want to create this as a form control. What will the selection control? Will it decide where the document is going to be placed in the content tree? Does the value have to be in a dropdown? Seems like a simple url selector would accomplish the same thing and not have to be custom, unless I'm not understanding your needs.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.