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

RadPanel within UserControl not resizing

2 Answers 120 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 27 Jul 2010, 05:27 PM
I have created a custom UserControl.  The structure of the UserControl is,

UserControl
   RadPanel1
      RadPanel2
      RadStatusStrip

RadPanel2 is where I draw graphics.  The RadStatusStrip display mouse location information below RadPanel2.  RadPanel1 is sized so that RadPanel2 and RadStatusStrip completely fill the area.

This UserControl is then placed in a ToolWIndow within a ToolTabStrip within a RadSplitContainer within a RadDock.

In the initial state, everything works fine.  However, I need to dynamically resize the UserControl when the RadSplitContainer is resized, or when the ToolWindow is undocked and resized.  I also need to resize the UserControl when the ToolWindow is redocked.

I have tried making the RadPanels the Windows Panel also.  In both cases, I cannot get the Resize event on the Panel or RadPanels to fire to allow me to redraw the contents according to the new size.  I do see the Resize event on the ToolWindow being fired.

What is the proper way for me to do the resizing of the UserControl and its contents?

Thanks for any help.


Ken...

2 Answers, 1 is accepted

Sort by
0
Kenneth
Top achievements
Rank 1
answered on 27 Jul 2010, 09:03 PM
False alarm.

I recreated my UserControl and things now work as expected.  I must have messed up some properties the first time around.


Ken...
0
Boryana
Telerik team
answered on 30 Jul 2010, 05:12 PM
Hello Kenneth,

I am glad to hear that everything is working fine now. Do not hesitate to contact us in case of further issues.

Sincerely yours,
Boryana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Dock
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Kenneth
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or