Very simple getting-started question

2 posts, 1 answers
  1. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 21 Aug 2009 Link to this post

    A very simple question with radWindow...

    I've got a radGridView on an XAML page called UserWorkdesk which displays details from my database. When the user clicks an 'open' button on the UserWorkdesk, I want to allow the user to edit the details for the currently selected item in the radGridView, in a radWindow. Does the radWindow have to be defined in UserWorkdesk, or can I define it in a new XAML page? If the latter, how do I define it?

    Thanks,

    James
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Aug 2009 Link to this post

    Hi James,

    I would recommend you to define RadWindows in separate files. You could also define them directly in the page with the GridView control, but it would better to move the RadWindow controls out of it and separate the xaml and code-behind of the windows.

    I would recommend you to inherit the RadWindow control in XAML (like you do with the UserControl when you are using the VS template "Create new UserControl"). You can do this by creating a new UserControl. After that you should change the UserControl tag in the XAML file with telerikNavigation:RadWindow and change the new UserControl to not inherit from UserControl, but from RadWindow. I've prepared a small example that demonstrates the idea.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. DevCraft banner
Back to Top