RadToolstrip with [checkbox][Image][Text]

3 posts, 0 answers
  1. suneetha inturi
    suneetha inturi avatar
    4 posts
    Member since:
    Oct 2009

    Posted 06 Oct 2009 Link to this post

    Hi
    I want to build a radtoolstrip with [checkbox][image][text] in dropdown.I have seen most of the controls(like radmenu item) have image and text.radcheckboxelement has [checkbox][image][text]  this feature.But we are unable to add it to radsplitbuttonelement.
    Is there any control which satisfies my requirement.

    Thanks
    Suneetha.
  2. Robert
    Robert avatar
    82 posts
    Member since:
    Jun 2009

    Posted 07 Oct 2009 Link to this post

    Hello Suneetha,

     

    You can actually use a RadMenuContentItem to create this type of menu item. You can assign any RadElement based control to the ContentElement property of a RadMenuContentItem. Once doing that, you will simply need to add your newly created RadMenuContentItem to the items collection of the RadSplitButtonElement. Also, as shown in this example, you can add a RadElement based control directly to the items collection of a RadMenu and it will automatically create the RadMenuContentItem for you. This also works when done with the RadSplitButtonElement items collection:

     

    RadCheckBoxElement checkBoxElement = new RadCheckBoxElement();

    checkBoxElement.Image = global::MyProject.Properties.Resources.rss_small;

    checkBoxElement.Text = "Hello World";

     

    radSplitButtonElement1.Items.Add(checkBoxElement);

    - Robert

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 09 Oct 2009 Link to this post

    Hello Robert,

    Thank you very much for the answer. I would like only to provide the public links for the help topics below: RadMenu-Nested Controls and RadMenu-Nesting Controls Tutorial.

    Suneetha, hope Robert's code and help topics are useful. Do not hesitate to write us again if you need additional assistance.

    Greetings,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top