RadWindow.Hide() is obsolete

6 posts, 1 answers
  1. Ivan Kopcanski
    Ivan Kopcanski avatar
    47 posts
    Member since:
    Jul 2009

    Posted 08 Sep 2009 Link to this post

    RadWindow.Hide() is obsolete and I use it a lot. I keep references to already opened windows (to gain some performance)
    and now I am worried the warning saying that Hide() is obsolete and I should use Close() now. What does Close() method do
    in comparisson with Hide() and what are my options now?
  2. Answer
    Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 08 Sep 2009 Link to this post

    Hi Ivan Kopcanski,

    Now the close method does the same thing as what the hide method used to do. We decided that it will be easier to have only a single method for this which is now Close. If you have any other questions concerning our controls for Silverlight feel free to contact us as soon as possible.

    Regards,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Ivan Kopcanski
    Ivan Kopcanski avatar
    47 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2009 Link to this post

    Thank you for the answer, this is a relief. :) 
  5. Shawn Burke
    Shawn Burke avatar
    13 posts
    Member since:
    Sep 2009

    Posted 10 Sep 2009 Link to this post

    Every time I call Show/ShowDialog it will attach the same event handler to 'Opened' event, which then causes the handler to be called multiple times.

  6. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 10 Sep 2009 Link to this post

    Hello Shawn Burke,

    Yes, we are aware of this problem and will do our best to resolve it for our next major release. Until then I hope this will not be a show stopper for you. Thank you for contacting us.

    Kind regards,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Patrik
    Patrik avatar
    56 posts
    Member since:
    Jul 2010

    Posted 11 Nov 2010 Link to this post

    Shawn, just detach the Opened event handler after it has been called.
Back to Top
DevCraft banner