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

How do I detect a grid size change?

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 06 Jul 2011, 03:23 PM
I am wondering how I detect that my grid has changed size, horizontally.

I have a grid that is defined as 100% of the width of its containing element.

Which is a RadDock.

I would like to react to size changes, so I can alter the contents of the CommandItem
to fit.

TIA

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 06 Jul 2011, 05:05 PM
Hi Tim,

To detect the change in the RadDockableObject width, consider intercepting the OnClientResizeStart or OnClientResizeEnd events of the dock (see this demo). Additionally, if you enabled column resizing for the grid, you can listen for the OnColumnResizing/OnColumnResized events of the control (see this demo).

Best regards,
Sebastian
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or