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

RadDropdownButtonElement.

4 Answers 160 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Hugues
Top achievements
Rank 1
Hugues asked on 14 Jan 2015, 10:48 PM
Is it possible to add a form on the dropdown of the RadDropDownButtonElement.

Thanks,
Jerome

4 Answers, 1 is accepted

Sort by
0
Hugues
Top achievements
Rank 1
answered on 14 Jan 2015, 11:01 PM
I figure it out.
0
Dimitar
Telerik team
answered on 16 Jan 2015, 02:59 PM
Hi Hugues,

Thank you for writing. I am glad that you have solved this on your own.

In order the community to benefit, I will post a suggestion here as well. Hosting a form can be achieved by using RadMenuHostItem to host the form:
public Form1()
{
    InitializeComponent();
    RadDropDownButton button = new RadDropDownButton();
    button.Parent = this;
    button.Text = "Test Button";
    button.Location = new Point(20, 20);
     
    Form form = new RadForm();
    form.Text = "MyForm";
    form.TopLevel = false;
    form.Dock = DockStyle.Fill;
    RadMenuHostItem host = new RadMenuHostItem(form);
    host.MinSize = new System.Drawing.Size(500, 500);
 
    button.Items.Add(host);
}

Please let us know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Hugues
Top achievements
Rank 1
answered on 16 Jan 2015, 04:56 PM
That is awesome. I did not know you can use the Host Controller. Thanks for that. I actually override some of the functionality on the dropdownbutton to do it. I guess i did it the hard way. But i am very grateful for that solution.

Thanks,
Jerome
0
Dimitar
Telerik team
answered on 21 Jan 2015, 10:38 AM
Hi Jerome,

Thank you for writing back.

I am glad I could be of help. Let us know if you have any other questions.

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Hugues
Top achievements
Rank 1
Answers by
Hugues
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or