I've a RadCollapsiblePanel that contains a radpanel (dockstyle.left) plus a radsplitcontainer (dockstyle.fill).
The radcollapsiblepanel sizing mode is set to .FitToContentHeight.
It collapses ok, but when it expands it seems to resize to the content height correctly but the contents aren't being restored with it. See attached file.
I've tried resetting the contained splitcontainer dock to botton, then fill, but that made no difference.
9 Answers, 1 is accepted
Oh. Ive realised what was going wrong. The collapsible panel was resizing itself to the original size, but that was happening after the dockstyle.fill event was firing on the splitcontainer child control. So that was resizing to 2 pixels high (tbh, that should have received a resize to force it to fill the space).
Ive changed the dockstyle of the splitcontainer to dockstyle.top which prevents it changing the height. Im just hoping that the theming doesn't lose child controls from the splitcontainer when they're resized by theming. (I feel really sorry for you telerik devs. Oh my!)
I am glad that you have found a solution for this case. As to the themes at hand, please note that they do not change the size of the controls (except the touch themes).
Do not hesitate to contact us if you have other questions.
Regards,
Dimitar
Progress Telerik
According to the provided information, I suppose that you want to control the size of the collapsible button but after disabling the auto-size functionality, the button disappears. The AutoSize property is serialized in the designer file. However, the specified size is not.
The possible solution that I can suggest is to specify the size at run time as follows:
public RadForm1()
{
InitializeComponent();
this.radCollapsiblePanel1.CollapsiblePanelElement.HeaderElement.HeaderButtonElement.AutoSize = false;
this.radCollapsiblePanel1.CollapsiblePanelElement.HeaderElement.HeaderButtonElement.Size = new Size(30, 30);
}
However, if it is not the exact requirement, please give us some more details about the exact goal that you are trying to achieve. Thus, we would be able to think about a suitable solution and assist you further. Thank you in advance.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
In the following try I put the size for radimagebutton but it look like in image1
RadImageButtonElement btnimage = new RadImageButtonElement
{
Image =newImage,
Size=new Size(20,20)
};
radCollapsiblePanel1.CollapsiblePanelElement.HeaderElement.Children.Insert(0, btnimage);
I am glad that the initial problem that you were facing is now resolved. I have noticed that you have posted identical questions in multiple forum threads.We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.
Thank you for your understanding.
As to the question about closing the collapsible panel and the background color still stays for a second, I would suggest you to disable the animation. It is just necessary to set the RadCollapsiblePanel.EnableAnimation property to false.
I hope this information helps.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik