Hi, I'm currently using Radsplitcontainer, radpanegroup and radpane and I'm having a problem with settings which of the tab in the radpanegroup should be active. I got two viewmodels, and I want to use a bool to make the tabs active according to which ViewModel event that is invoking. How can I do this?
Because I'm using a gridView, and by selecting an item in the grid, I the tab to be active depending on which gridview I'm selecting an item on. This mean that I'll have 2 gridviews, and the radpane is supposed to be a tab window that shows the details of the item selected.
<telerik:RadPaneGroup TabStripPlacement="Top" telerik:ProportionalStackPanel.RelativeSize="100,300" >
<telerik:RadPane Header="{Binding viewModel1.Title, Mode=TwoWay}" CanUserClose="False" CanDockInDocumentHost="True" >
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<ContentControl Content="{Binding viewModel1}"
ContentTemplate="{StaticResource ViewEditorTemplate1}" />
</ScrollViewer>
</telerik:RadPane>
<telerik:RadPane Header="{Binding viewModel2.Title}" CanUserClose="False" CanDockInDocumentHost="True" telerik:ProportionalStackPanel.RelativeSize="200, 100" >
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<ContentControl Content="{Binding viewModel2}"
ContentTemplate="{StaticResource ViewEditorTemplate1}"/>
</ScrollViewer>
</telerik:RadPane>
</telerik:RadPaneGroup>
Because I'm using a gridView, and by selecting an item in the grid, I the tab to be active depending on which gridview I'm selecting an item on. This mean that I'll have 2 gridviews, and the radpane is supposed to be a tab window that shows the details of the item selected.
<telerik:RadPaneGroup TabStripPlacement="Top" telerik:ProportionalStackPanel.RelativeSize="100,300" >
<telerik:RadPane Header="{Binding viewModel1.Title, Mode=TwoWay}" CanUserClose="False" CanDockInDocumentHost="True" >
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<ContentControl Content="{Binding viewModel1}"
ContentTemplate="{StaticResource ViewEditorTemplate1}" />
</ScrollViewer>
</telerik:RadPane>
<telerik:RadPane Header="{Binding viewModel2.Title}" CanUserClose="False" CanDockInDocumentHost="True" telerik:ProportionalStackPanel.RelativeSize="200, 100" >
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<ContentControl Content="{Binding viewModel2}"
ContentTemplate="{StaticResource ViewEditorTemplate1}"/>
</ScrollViewer>
</telerik:RadPane>
</telerik:RadPaneGroup>