Hiding radWindow until resized and centered

11 posts, 0 answers
  1. John
    John avatar
    25 posts
    Member since:
    Feb 2008

    Posted 10 Apr 2008 Link to this post

    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
  2. John
    John avatar
    25 posts
    Member since:
    Feb 2008

    Posted 10 Apr 2008 Link to this post

    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
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Apr 2008 Link to this post

    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
  4. John
    John avatar
    25 posts
    Member since:
    Feb 2008

    Posted 15 May 2008 Link to this post

    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
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 May 2008 Link to this post

    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
  6. John
    John avatar
    25 posts
    Member since:
    Feb 2008

    Posted 11 Jun 2008 Link to this post

    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
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Jun 2008 Link to this post

    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
  8. marcos paz
    marcos paz avatar
    3 posts
    Member since:
    Sep 2005

    Posted 02 Dec 2008 Link to this post

    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.
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 04 Dec 2008 Link to this post

    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.
  10. vinit
    vinit avatar
    2 posts
    Member since:
    Jan 2009

    Posted 29 Jan 2009 Link to this post

    HI,
              Can u tell me please how to hide a rad window?


    With Thanks,
    Vinit
  11. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Jan 2009 Link to this post

    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.
Back to Top