I just upgraded to the latest release of WinForms and am trying to add controls to a RibbonBarGroup using the following code:
Everything builds fine, but when I run the project nothing shows up in the RibbonBarGroup.
private void SetupRibbonBar() |
{ |
RadLabel lblStartDate = new RadLabel(); |
lblStartDate.Text = "Start Date"; |
lblStartDate.Location = new Point(2, 2); |
RadLabel lblEndDate = new RadLabel(); |
lblEndDate.Text = "End Date"; |
lblStartDate.Location = new Point(2, 24); |
RadDateTimePicker StartDate = new RadDateTimePicker(); |
StartDate.MinimumSize = new Size(150, 20); |
StartDate.Location = new Point(13, 2); |
StartDate.Format = DateTimePickerFormat.Short; |
RadDateTimePicker EndDate = new RadDateTimePicker(); |
EndDate.MinimumSize = new Size(150, 20); |
EndDate.Location = new Point(13, 24); |
EndDate.Format = DateTimePickerFormat.Short; |
RadPanel panel = new RadPanel(); |
panel.Controls.AddRange(new Control[] { lblStartDate, lblEndDate, StartDate, EndDate }); |
RadHostItem item1 = new RadHostItem(panel); |
this.RibbonBarGroupReportPeriod.Items.Add(item1); |
} |
Everything builds fine, but when I run the project nothing shows up in the RibbonBarGroup.