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

Very simple getting-started question

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 21 Aug 2009, 12:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 24 Aug 2009, 01:10 PM
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.
Tags
Window
Asked by
James
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or