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

Prevent temporarily resizing of radwindow from showing up

6 Answers 240 Views
Window
This is a migrated thread and some comments may be shown as answers.
JEAN DAVID ELBAZE
Top achievements
Rank 1
JEAN DAVID ELBAZE asked on 29 Jun 2009, 07:30 AM
Hi everyone.

As many of you already know, there is a temporary resizing of the rad windows before it is resized and centered. I have read that Telerik had included this for some future development.

Can someone please tell me if this is already available or how to use it?
btw, I am using Telerik 2009.1.311.35.

Thanks in advance.
YA

6 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 29 Jun 2009, 02:34 PM
Hi JEAN,

This functionality was implemented in the RadWindow control in the Q1 2009 release (the version that you use) and you can run it by setting the AutoSize property to "true". Also, you can observe this functionality in action on this demo page.

I hope this helps.

Best wishes,
Fiko
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
JEAN DAVID ELBAZE
Top achievements
Rank 1
answered on 30 Jun 2009, 04:59 AM
Hi again.

Ya, thats fine. But what about the following scenerio :

I click a link on a page which opens a radwindow with the radopen command.
The radwindow is initially set at 200x200px at design mode and it is used everywhere in my web site, that is, the content of the window varies and hence the size is set dynamically by the autosize property.

However, on clicking the link, the radwindow appears with an initial size and after the content is determined, it is resized accordingly, which is very good. But is there a way to prevent the radwindow from showing that initial size at the start? Some sort of hiding it and showing it once the final size is determined?

I tried using the hide and show command, but that doesn't works correctly.

Thanks!


0
Accepted
Fiko
Telerik team
answered on 30 Jun 2009, 01:32 PM
Hi JEAN,

You can achieve the desired result by using the client side API of the RadWindow control. For your convenience I have attached a sample that shows the steps in order to show the RadWindow after it is already resized.

I hope this helps.

Sincerely yours,
Fiko
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
JEAN DAVID ELBAZE
Top achievements
Rank 1
answered on 01 Jul 2009, 12:10 PM
Hello Fiko.

This sample project works wonderfully! Thanks!

However, I would like to add something:
The oWindow..hide() and oWindow..show() triggers the popin's body onload event twice.
I had to remove those 2 lines because it is clearly noticeable that the page is loading twice (in my case).

Can I know the reason of using these 2 lines?
After removing those lines, I cannot notice the difference in the results obtained.

Thanks again for your useful help!
0
Fiko
Telerik team
answered on 01 Jul 2009, 03:20 PM
Hello JEAN,

I used these two lines in order to avoid a possible sliding behavior when you use moveTo() function, but such a behavior does not appear and you can remove oWindow.show() and oWindow.hide() functions without any problem. This was my omission and I thank you for the feedback.

Please do not hesitate to contact us if you have any further questions.

Best wishes,
Fiko
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
JEAN DAVID ELBAZE
Top achievements
Rank 1
answered on 02 Jul 2009, 06:33 AM
;)

Cheers!
Tags
Window
Asked by
JEAN DAVID ELBAZE
Top achievements
Rank 1
Answers by
Fiko
Telerik team
JEAN DAVID ELBAZE
Top achievements
Rank 1
Share this question
or