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

Hiding radWindow until resized and centered

10 Answers 246 Views
Window
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Apr 2008, 09:22 AM
Hi,

I am following the code in the KB article 672 about resizing a radwindow according to its contents. The problem I have is that I don't want the radWindow to be displayed until it is the correct size. It doesn't look very good to have the window displayed at its initial size then redisplayed at the correct size. I've tried setting the initial coordinates of the window with negative values (so it is not visible), I've also tried setting the initial height and width to 0 but it displays a minimum width and I've also tried setting setVisible to false immediately and then reshowing after the resizing is complete. All of these solution either didn't work or had strange side effects. Can you tell me if it is possible to achieve this, or if it will be in the future. This appears to be a serious drawback if it isn't possible to prevent the window from displaying until it is resized correctly.

Thanks,

John

10 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 10 Apr 2008, 11:48 AM
Hi,

I've found a workaround that appears to solve the problem (and works x-browser(IE, Firefox and Safari)).

Basically I'm using setElementOpacity from Common.js to make the radWindow Div and the ModalOverlay Div transparent, then when the resizing is done I set the opacity back (100 and 0.5 respectively). This seems to work fine.

I would still appreciate a definitve response from Telerik though, and whether this kind of thing is supported (or will be in a future release) as I'd prefer the control to handle this rather than a nasty hack :-)

Thanks.

John
0
Georgi Tunev
Telerik team
answered on 14 Apr 2008, 03:21 PM
Hi John,

We are planning to provide a property that when set will make the RadWindow auto-resize itself - this will happen in one of the future versions of the control. For now you can use the workaround that you found - you should not experience problems with it.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 15 May 2008, 07:18 AM
Hi Gerogi,

Can you tell me if the auto-resize function has made it in yet, or if not, when it is planned to be released.

Many thanks,

John
0
Georgi Tunev
Telerik team
answered on 15 May 2008, 12:15 PM
Hi John,

No, its development is still in process. We will do our best to have it for the Q2 release in the summer.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 11 Jun 2008, 10:41 AM
Hi Georgi,

Is there any news on the autosize feature? Will it be in the next release? When is that planned to ship?

In the meantime I am experiencing a problem with my initial workaround. It works fine with one window but if display another modal window over an existing one, then on closing the top dialog, the opacity on the underlying dialog is set to its original value (i.e. 0), so you;re just left with the overlay displayed and the initial window "hidden".

I have a zip file containing the bits needed to reproduce the problem which I'll send you if you let me know where/how to. If you could provide any help then that would be greatly appreciated.

Many Thanks

John
0
Georgi Tunev
Telerik team
answered on 11 Jun 2008, 12:14 PM
Hello John,

Yes, this feature is still for our plans for the Q2 release in July. As for the problem that you experience, please send me the project in a support ticket along with detailed reproduction instructions and I will check it. The Submit Support Ticket link is available in your Client.net account, section My Support Tickets.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
marcos paz
Top achievements
Rank 1
answered on 03 Dec 2008, 01:29 AM
greetings,
is the server-side property for resizing the RadWIndow based on it's content available yet?
i am using the Q3 2008 version: 2008.3.1105.35

 if not, do you have an update on it's availability ?

thx,
marcos.
0
Georgi Tunev
Telerik team
answered on 04 Dec 2008, 01:52 PM
Hello marcos,

No, this feature is still not available - it is in our ToDo list for either Q1 or a following update.


All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
vinit
Top achievements
Rank 1
answered on 29 Jan 2009, 11:27 AM
HI,
          Can u tell me please how to hide a rad window?


With Thanks,
Vinit
0
Georgi Tunev
Telerik team
answered on 29 Jan 2009, 11:34 AM
Hi vinit,

There is a client-side hide() method that you can use for this purpose.


Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Georgi Tunev
Telerik team
marcos paz
Top achievements
Rank 1
vinit
Top achievements
Rank 1
Share this question
or