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

Help Deciding on Control

2 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Jul 2012, 12:27 PM
Hey Everyone

I need help deciding which control would be best for a design I've been given.  I need a control similar to a combo box or drop down in that a button on the right will be used to expand the control.  However, the content of the control will have multiple items on each line.  The attached images should explain a little better.  The expanded contents should float over the other controls on the screen; not push them down.

Help!

Thanks
Mark

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Aug 2012, 04:13 PM
Hello Mark,

We don't have such a control in particular but you can use the RadSplitButton as a container for it. Then you can define the SplitButton's Content as a WrapPanel or ItemsControl so that it can display the list of items. And in the DropDownContent you can create a custom panel that can display the same or different items and the additional information.

You can also have a look at the RadRibbonGallery control that is part of the RadRibbonView collection of controls as its structure is similar to what you described.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mark
Top achievements
Rank 1
answered on 01 Aug 2012, 06:22 PM
Thanks!  The SplitButton works out very well.  I was using the Expander, but the button was not positioned correctly.  The SplitButton takes care of that problem.

I ended up using the Content and DropdownContent using Grids and it works nicely.

I have a question now, though.  The objects in the DropDownContent have a MouseOver event that attempts to set the cursor to a hand.  When using the Expander, this worked.  However, when placed in the DropDownContent, it does not.  The cursor stays as an arrow.  I have checked and the MouseOver event is, in fact, firing - which is good.

I should mention that this is all in a UserControl.  The code for setting the cursor is one line:  this.Cursor = Cursors.Hand;

Is there another way to set the cursor?

[EDIT]  Never mind!  I answered my own question.  using Mouse.OverrideCursor instead of this.Cursor works perfectly.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Mark
Top achievements
Rank 1
Share this question
or