Close window from ViewModel

7 posts, 0 answers
  1. Alexey
    Alexey avatar
    79 posts
    Member since:
    Oct 2008

    Posted 21 Oct 2009 Link to this post

    Hi,

    Have you provided any way to close window from ViewModel?

    With standard ChildWIndow I've binded DialogResult property to close window.

    Changing of RadWindow DialogResult doesn't cause window to close itself.

    Thanks,
    Alexey Zakharov.
  2. Alexey
    Alexey avatar
    79 posts
    Member since:
    Oct 2008

    Posted 21 Oct 2009 Link to this post

    I've found you button attached proeprty TelerikNavigation:RadWindow.ResponseButton="Accept". May be button marked with this attached property should close radwindow?

    Currently I don't understand why it is needed.
  3. DevCraft banner
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Oct 2009 Link to this post

    Hello Alexey,

    The RadWindow control dosn't provide such property that is able to close it. You could create an attached property that does the job. You could also use the WindowCommands.Close command (it causes the RadWindow control to close).

    We will log your request we may add this feature, but for now it is not supported.

    Best wishes,
    Miroslav Nedyalkov
    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.
  5. Denis Vuyka
    Denis Vuyka avatar
    39 posts
    Member since:
    Oct 2009

    Posted 27 May 2011 Link to this post

    What is the reason not to mimick the standard Silverlight ChildWIndow behavior in this case where dialog is closed upon DialogResult value is assigned. Your current implementaion is not intuitive for Silverlight developers and provides additional overhead during migration to Telerik suite.
    Regards,
    Denis
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 May 2011 Link to this post

    Hi Denis,

     This feature is in our TODO list, but it is not planned for the 2011 Q2 release. You could track its progress in PITS. The item ID is 6281.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Hai
    Hai avatar
    7 posts
    Member since:
    Sep 2010

    Posted 15 Dec 2011 Link to this post

    You mentioned that "You could create an attached property that does the job." Can you please give a example of this?
  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Dec 2011 Link to this post

    Hi Hai,

    We don't have such an example, but you could refer to this article, which explains the suggested approach. The article is for WPF, but this approach will work in Silverlight as well.

    Hope this helps.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner