Hello...
I am attempting to get a RadWaitingBar to work in a RadStatusStrip and having some issues... my status strip is build like this...
RadWaitingBar (200px) | RadLabelElement (Spring) | RadLabelElement (200px)
I found the article of putting the RadWaitingBar in a RadHostItem at...
http://www.telerik.com/community/forums/winforms/statusstrip/radwaitingbar-in-radstatusstrip.aspx
and followed the instructions but still the center LabelElement is over-springing all the way to the left underneath the RadHost + RadWaitingBar...
I am building this entirely in code due to the RadHostItem...
when I run this... I get the following (attached image).... as you can see, the RadWaitingBar is on top of the center LabelElement.
Any ideas on how to fix this?
I am attempting to get a RadWaitingBar to work in a RadStatusStrip and having some issues... my status strip is build like this...
RadWaitingBar (200px) | RadLabelElement (Spring) | RadLabelElement (200px)
I found the article of putting the RadWaitingBar in a RadHostItem at...
http://www.telerik.com/community/forums/winforms/statusstrip/radwaitingbar-in-radstatusstrip.aspx
and followed the instructions but still the center LabelElement is over-springing all the way to the left underneath the RadHost + RadWaitingBar...
I am building this entirely in code due to the RadHostItem...
private RadWaitingBar waitingBar = new RadWaitingBar(); |
private RadLabelElement _statusLabelElementCenter= new RadLabelElement(); |
private RadLabelElement _statusLabelElementRight= new RadLabelElement(); |
waitingBar.BeginInit(); |
waitingBar.Size = new Size(200, 16); |
waitingBar.MinimumSize = new Size(200, 16); |
waitingBar.MaximumSize = new Size(200, 16); |
waitingBar.EndInit(); |
statusLabelElementCenter.AutoSize = true; |
statusLabelElementCenter.Margin = new System.Windows.Forms.Padding(1); |
statusLabelElementCenter.Text = "Here is some really long text that shows how the controls are overlapped."; |
statusLabelElementRight.AutoSize = false; |
statusLabelElementRight.Size = new Size(200, 16); |
statusLabelElementRight.Margin = new System.Windows.Forms.Padding(1); |
statusLabelElementRight.Text = "Right Label"; |
//WaitingBar in RadHostItem, RadHostItem in PanelElement, based |
//upon suggestions in previous post. |
RadStatusBarPanelElement stripPanel = new RadStatusBarPanelElement(); |
stripPanel.Size = new Size(200, 16); |
stripPanel.Padding = new Padding(0); |
stripPanel.Children.Add(new RadHostItem(waitingBar)); |
radStatusStrip1.BeginInit(); |
radStatusStrip1.Items.Add(stripPanel); |
radStatusStrip1.Items.Add(statusLabelElementCenter); |
radStatusStrip1.Items.Add(statusLabelElementRight); |
radStatusStrip1.SetSpring(statusLabelElementCenter, true); |
radStatusStrip1.EndInit(); |
when I run this... I get the following (attached image).... as you can see, the RadWaitingBar is on top of the center LabelElement.
Any ideas on how to fix this?