Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Multiple Controls Side by Side Ribbon Bar Group

$
0
0

Hi,

I am new telerik components and hoping someone may be able to point me in right direction. I am attempting to add a label and datetime picker control side by side in my ribbon bar group. I have managed to get the label and datetime picker to appear on the same row (for lack of a better term) in the group, but they just overlap each other.

I found a similar thread called "Label in Ribbon Bar", which sets positioning of the controls in a panel...then the panel is added to the group as RadHostItem. I tried the suggested code, but it doesn't appear to work, as the ribbon group ended up empty...not displaying any controls. Then I tried without the panel. The label and datetime picker reappeared, but were still overlapped.

I have included a code snippet below. Any insight or help is appreciated.

 RadLabel label = new RadLabel();
 label.Location = new Point(5, 5);
 label.Text = "test";
 RadHostItem item1 = new RadHostItem(label); RadDateTimePicker picker = new RadDateTimePicker();
 picker.Location = new Point(32, 5);
 picker.MinimumSize = new Size(100, 0);
 RadHostItem item2 = new RadHostItem(picker);
 ribbonGroupSettings.Items.AddRange(new RadHostItem[] { item1, item2 }); ribbonGroupSettings.MinSize = new Size(ribbonGroupSettings.Size.Width + label.Width + 100 + padding, 0);  

Thanks.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>