hi,
why dose the Rad Docking control disappear when I add it inside Rad Window?
<telerik:RadWindow x:Name="win" >
why dose the Rad Docking control disappear when I add it inside Rad Window?
<telerik:RadWindow x:Name="win" >
<Grid>
<radDock:RadDocking >
<radDock:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">
<radDock:RadPaneGroup>
<radDock:RadPane Header="Pane Left 1" Content="Pane Left 1" />
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
</radDock:RadDocking>
</Grid>
</telerik:RadWindow>
thx
10 Answers, 1 is accepted
0
Hi reema,
Did you open the RadWindow in the page loaded event? If not then this is the default behavior of RadWindow - when loaded RadWindow remove it self from the layout. Then when Show or ShowDialog method is called RadWindow shows inside of Popup.
Please note that you call Show or ShowDialog in Page Loaded event (no earlier) or RadWindow won't work (this is Silverlight issue with popup control).
Let us know if you need more information.
Sincerely yours,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Did you open the RadWindow in the page loaded event? If not then this is the default behavior of RadWindow - when loaded RadWindow remove it self from the layout. Then when Show or ShowDialog method is called RadWindow shows inside of Popup.
Please note that you call Show or ShowDialog in Page Loaded event (no earlier) or RadWindow won't work (this is Silverlight issue with popup control).
Let us know if you need more information.
Sincerely yours,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
reema
Top achievements
Rank 1
answered on 05 May 2009, 07:56 AM
hi
Okay, it's working with page loaded event but in my case I need to open the RadWindow in RadTreeViewItem_Selected event...
Okay, it's working with page loaded event but in my case I need to open the RadWindow in RadTreeViewItem_Selected event...
thx
0
Hello reema,
where docking is the Docking control in your window.
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.
This is a bug in RadDocking. We found it and the fix will be included in our next build. As a workaround for now you can use the following code, but remember to remove it as soon as you upgrade your RadControls for Silverlight. Right after showing the window, add the following:
foreach (var c in docking.Items |
.Where(i => i is RadSplitContainer) |
.Cast<RadSplitContainer>()) |
{ |
if (c.Visibility == Visibility.Collapsed && |
c.Items |
.Where(i => i is UIElement) |
.Cast<UUIElement() |
.Count(item => item.Visibility != Visibility.Collapsed) > 0) |
{ |
c.Visibility = Visibility.Visible; |
} |
} |
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.
0
reema
Top achievements
Rank 1
answered on 07 May 2009, 11:27 AM
I have this error now..
Error 1 The name 'UUIElement' does not exist in the current context ....
thx
0
Hello reema,
I'm really sorry, I pressed "U" while I was formatting the code. Please, remove the "U" in front of the UIElement in the line ".Cast<UUIElement()".
This should solve the problem.
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.
This should solve the problem.
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.
0
reema
Top achievements
Rank 1
answered on 08 May 2009, 05:56 AM
hi,
the error now..
Error 1 'System.Windows.UIElement' is a 'type' but is used like a 'variable'
thx
the error now..
Error 1 'System.Windows.UIElement' is a 'type' but is used like a 'variable'
thx
0
0
reema
Top achievements
Rank 1
answered on 08 May 2009, 03:55 PM
hi Miroslav,
sorry but where is the code?
thx
sorry but where is the code?
thx
0
reema
Top achievements
Rank 1
answered on 09 May 2009, 09:32 AM
hi,
also I tryed to copy the example http://demos.telerik.com/silverlight/#Docking/SplitContainers but I got "AG_E_UNKNOWN_ERROR"
actually what i need is to add a tab control beside the dock control so if hide dock control the tab will be expanded..
thx
also I tryed to copy the example http://demos.telerik.com/silverlight/#Docking/SplitContainers but I got "AG_E_UNKNOWN_ERROR"
actually what i need is to add a tab control beside the dock control so if hide dock control the tab will be expanded..
thx
0
Hi reema,
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.
Could you please open a support ticket and attach the project that gives you the error to let us investigate the problem.
I'm really sorry about the missing code. In the meantime, you can download the latest internal build, where problem is fixed and you will not need this work-around any more. The version is 2009.1.508
Hope this helps.
Hope this helps.
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.