This is a migrated thread and some comments may be shown as answers.
Resizing a popup window
5 Answers 130 Views
This is a migrated thread and some comments may be shown as answers.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 07 Oct 2008, 11:54 AM
Hi,

I have a popup window.  And on this popup window is a button.  When I click the button a grid is made visible, and it has a couple of records, so obviously the windows get bigger.  How do I adjust the size of the window when the content size gets bigger?

Thanks
Brendan

5 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Oct 2008, 04:31 PM
Hello Brendan,

In order to achieve the desired behavior you should use the RadWindow's client-side API. For your convenience I attached a sample demo which shows one possible approach, feel free to extend it further in order to meet your requirements. 

Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brendan Vogt
Top achievements
Rank 1
answered on 04 Nov 2008, 01:31 PM
Hi Svetlina,

Thanks for the sample.

My scenario is a little different.  I have a popup with a grid in it.  The grid can have anything from 0 to 15 records in it.  So I need the popup window to be the size of the grid so that it fits in nicely.  I can not do this manually because I do not always know how much rows there will be.

Please help urgently.

Thanks
Brendan
0
Svetlina Anati
Telerik team
answered on 05 Nov 2008, 03:57 PM
Hi Brendan,

Thank you for providing these additional details about your scenario. You can find a working example which demonstrates how you can achieve the desired behavior in the following blog post's attached project:

http://blogs.telerik.com/TervelPeykov/Posts/08-06-10/Ever_needed_a_demo_using_RadControls_for_ASP_NET_AJAX_using_the_Q1_2008_RadControls_suite.aspx?ReturnURL=%2fTervelPeykov%2fPosts.aspx%3fPage%3d1

Please, download the project and try to implement the same logic.

Greetings,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
OgOJack
Top achievements
Rank 1
answered on 06 Nov 2008, 05:38 PM
Thanks a lot for this sample, i was looking for it a long time. This sample really explains how to resize RadWindow object of latest version. But in Opera(9.5, 9.62) i have many problems with it:
  1. After loading window jumps to the top of client area of the browser.
  2. Resizing doesn't work correctly.
To invoke this behavior just launch this sample in Opera(9.5, 9.62).

Best wishes
Eugene
IDE Group Maxymiser
0
Tervel
Telerik team
answered on 07 Nov 2008, 10:33 AM
Hello,

Thank you for the feedback. We plan to introduce a built-in property in RadWindow named AutoSize or something to that tune, and when we do it we will make sure it works properly under Opera as well.


Best wishes,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Brendan Vogt
Top achievements
Rank 1
OgOJack
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or