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

Modal RadWindow Height

2 Answers 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steve Humby
Top achievements
Rank 1
Steve Humby asked on 19 Mar 2009, 03:35 PM
Hi

Does anyone know if its possible to display a modal window with the height dependant on its contents?

I have a table which gets data from a database, however, if a field contains too much text, scrollbars appear which ruins the effect and layout of the page. I would rather be able to display the window with all its contents (as long as it remains in screen bounds of course) without the need to scroll.

Does anyone know if this is possible?

Many thanks in advance.

Steve :o)

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 19 Mar 2009, 03:43 PM
Hi Steve,

In case you are using the latest build of RadControls I suggest to test the new AutoSize functionality of RadWindow as shown in the demo below:

http://demos.telerik.com/aspnet-ajax/window/examples/autosize/defaultcs.aspx

In order to get better behavior you can also set ShowContentDuringLoad to false, depending on your exact requirements.

If this is not what you need, you can catch the OnClientShow event of the RadWindow and set the desired size by using the client-side API and set_width and set_height methods.


Regards,
Svetlina
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Humby
Top achievements
Rank 1
answered on 19 Mar 2009, 03:55 PM
Looks just the job, thanks for the prompt reply Svetlina.

Steve :o)
Tags
Window
Asked by
Steve Humby
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Steve Humby
Top achievements
Rank 1
Share this question
or