RadDropdownButtonElement.

5 posts, 0 answers
  1. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 14 Jan 2015 Link to this post

    Is it possible to add a form on the dropdown of the RadDropDownButtonElement.

    Thanks,
    Jerome
  2. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 14 Jan 2015 Link to this post

    I figure it out.
  3. Dimitar
    Admin
    Dimitar avatar
    1605 posts

    Posted 16 Jan 2015 Link to this post

    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.

     
  4. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 16 Jan 2015 in reply to Dimitar Link to this post

    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
  5. Dimitar
    Admin
    Dimitar avatar
    1605 posts

    Posted 21 Jan 2015 Link to this post

    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.

     
Back to Top