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

Design-Time, add UserControl in a RadToolStripItem

5 Answers 83 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
hon
Top achievements
Rank 1
hon asked on 09 Sep 2010, 04:02 AM
Hi
I want to add UserControl in a RadToolStripItem. Not when the coding.



Thanks

5 Answers, 1 is accepted

Sort by
0
hon
Top achievements
Rank 1
answered on 09 Sep 2010, 04:04 AM
As shown in figure
0
Richard Slade
Top achievements
Rank 2
answered on 08 Oct 2010, 09:46 AM
Hi, 

This wouldn't be possible. The main reason is that RadToolStripItems accepts only items of type RadItem. If you make a user control, then it would no longer be a RadItem. 
Best regards, 
Richard
0
Emanuel Varga
Top achievements
Rank 1
answered on 09 Oct 2010, 12:27 AM
Hello Hon,

There might be a way using RadHostItem, you could check out this similar KB Article that shows how to add controls to a Ribbon Bar.

The usage of RadHostItem is very simple and intuitive:
var button = new RadButton();
var hostItem = new RadHostItem(button);
radToolStripItem1.Items.Add(hostItem);

But i have to warn you, you might have to do some tests and tweaks before you will get the size and everything right.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Richard Slade
Top achievements
Rank 2
answered on 09 Oct 2010, 10:13 PM
Hi again,

There is a forum post here about adding a different control to a ToolStripItem, but as Emanuel said, you will probably have some issues with sizing. However, as far as I'm aware, there is a replacement for the Toolstrip on its way for Q3,

Hope that helps
Richard
0
Stefan
Telerik team
answered on 13 Oct 2010, 06:45 PM
Hello hon, 

Thank you for writing.

Indeed, the way to place a user control in RadTooStrip is to first put it in a RadHostItem. However, since RadToolStrip is using our old layout system, some sizing issues might be expected.

I want to confirm Richard's statement regarding the new control that we are currently developing - RadCommandBar. This control will be introduced in Q3 2010 and it will substitute the current toolstrip implementation.

Kind regards,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
hon
Top achievements
Rank 1
Answers by
hon
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Emanuel Varga
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or