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

Resizing GridView in Dynamically created Toolwindow

3 Answers 35 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Boneshaker
Top achievements
Rank 1
Boneshaker asked on 05 May 2015, 02:19 PM

I have a raddock where I dynamically create a new toolwindow which has a dynamically created gridview on it.  When the user resizes the toolwindow I would like to gridview to automatically resize to the new toolwindow size.  I cannot seem to figure out how to generate a dynamic resize event for the toolwindow.

 

Thanks in advance...

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 May 2015, 05:26 AM
Hi Corey,

Thank you for writing.

The easiest way will be to either Dock or Anchor the grid hosted in the ToolWindow, and it will get automatically resized.

Let me know how this works for you.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Boneshaker
Top achievements
Rank 1
answered on 08 May 2015, 12:01 PM

Thank you for your reply....

The docked gridview ONLY resizes horizontally, not vertically when the parent form resizes.  Also, if the user manually resizes the toolwindow once again, only horizontal refresh of gridview occurs.  I need to know how to trap the resize event of a toolwindow that was created at runtime.

 

Thanks!

0
Stefan
Telerik team
answered on 11 May 2015, 07:59 AM
Hi Corey,

The behavior on my end differs from what you describe. The docked grid resizes in all directions as expected. Attached you can find a video how it works.

As to an event, perhaps you can use the SizeChanged event of ToolWindow to capture changes in the size.

I hope this helps.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussion
Asked by
Boneshaker
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Boneshaker
Top achievements
Rank 1
Share this question
or