Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Definelife on Dec 01, 2009 07:42
open dhtmlx forum
window resize

Dear Support,

I want to resize window object according to the grid width.
How can I resize a window object after the initializing?

Best regards,
Answer posted by Alex (support) on Dec 01, 2009 08:36

Hello,

there is no public method to resize window after initialization. But attachObject method allows to resize window according to container. The sample is attached

Attachments (1)
09.zip98.52 Kb
Answer posted on Dec 01, 2009 08:57

Thanks for the quick response.

I do not put the grid object directly in to the window object.

As first step I create layout for the dhtmlxwindow object and then I attach the grid in to the corresponding cell of the Layout object.

Unfortunately construction like:  Layout.cells(....).attachObject(Grid); does not resize the window object according to container/layout object.

Answer posted by Alex (support) on Dec 01, 2009 09:04