This is a migrated thread and some comments may be shown as answers.

Adding Subitems / Flyout menus to RadDropDownList

3 Answers 199 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Rodney
Top achievements
Rank 2
Rodney asked on 10 Mar 2016, 08:43 PM

I've looked through the help and just can't seem to figure out how to do this. In my dropdownlist, I want to create sub menu items for a couple of the items in the list.

Currently the dropdownlist items are being added in the code behind. Like this:

ddlSystem.Items.Add(new DropDownListItem(LogFile.CHCS, LogFile.CHCS));
ddlSystem.Items.Add(new DropDownListItem(LogFile.DCIPS, LogFile.DCIPS));
ddlSystem.Items.Add(new DropDownListItem(LogFile.EPEB, LogFile.EPEB));

So what I'm trying to do is change CHCS so that there are sub items under it that will fly out when you hover over it.

Thanks for any thoughts.

Rodney

 

 

 

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 11 Mar 2016, 09:08 AM
Hello Rodney,

Unlike the TreeView or PanelBar controls the RadDropDownList does not support a hierarchical order of its items. It holds a collection of DropDownListItems and they cannot contain other items. The single-level and multi-level structure difference can be seen in the corresponding controls' structure articles.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Rodney
Top achievements
Rank 2
answered on 12 Mar 2016, 01:06 AM

Ivan,

I tried moving to the PanelBar approach, and even the TreeView approach but both caused a problem I couldn't figure out how to overcome. When they are expanded they push the content below them down, whereas the DropDownList overlays the content below it. Am I missing a setting somewhere or is there a better tool for what I'm trying to do? I want a dropdown with the ability to present hierarchical lists and I don't want the content pushed down as it opens. 

I've attached 2 screen clippings of what I'm trying to express.

Thanks

 

0
Ivan Danchev
Telerik team
answered on 16 Mar 2016, 12:47 PM
Hello Rodney,

In order to avoid the PanelBar pushing the rest of the page's content below on item expand, you can set its position to absolute:
.RadPanelBar {
    position: absolute;
}


Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
DropDownList
Asked by
Rodney
Top achievements
Rank 2
Answers by
Ivan Danchev
Telerik team
Rodney
Top achievements
Rank 2
Share this question
or