Hi,
I'm relatively new to silverlight, so I might be doing somthing wrong. If I put a button inside a RadExpander, then only the last 1/4 is clickable, and if I click anywhere else on the button, then I get an error. Also, and this is a larger issue, when I click on any part of the radExpander that does not have a control on it, it also crashes.
Here is my xaml code:
<Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<core:RadExpander x:Name="treeExpander" ExpandDirection="Right" Grid.Row="2" Grid.Column="1" Grid.RowSpan="2">
<Grid x:Name="treeExpanderGrid">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="getTestsButton" Grid.Row="0" Grid.Column="0" Width="150" >
<TextBlock x:Name="getTestsText" Text="Display Tests"></TextBlock>
</Button>
<telerikInput:RadComboBox x:Name="comboBoxCompany" Grid.Row="1" Grid.Column="0" Width="200"></telerikInput:RadComboBox>
<telerikNavigation:RadTreeViewItem x:Name="treeItem" ></telerikNavigation:RadTreeViewItem>
<telerikNavigation:RadTreeView x:Name="treeWells" Width="auto" Height="auto" HorizontalAlignment="Left"
VerticalAlignment="Top"
IsTriStateMode="True" IsLineEnabled="True"
IsOptionElementsEnabled="True" ItemsOptionListType="CheckList"
ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
ItemTemplate="{StaticResource area}"
Grid.Row="2" Grid.Column="0" BorderThickness="1" BorderBrush="Blue"/>
</Grid>
</core:RadExpander>
<telerikGrid:RadGridView x:Name="grid" Grid.Row="2" Grid.Column="2"> </telerikGrid:RadGridView>
<telerikNavigation:RadMenu x:Name="filterOptionsMenu" Grid.Row="0" Grid.Column="2">
<telerikNavigation:RadMenuItem x:Name="filterMenuItem" Header="Filter">
<telerikNavigation:RadMenuItem x:Name="prevTestMenuItem" IsCheckable="True" Header="Prev Test" ></telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenu>
</Grid>
I'm relatively new to silverlight, so I might be doing somthing wrong. If I put a button inside a RadExpander, then only the last 1/4 is clickable, and if I click anywhere else on the button, then I get an error. Also, and this is a larger issue, when I click on any part of the radExpander that does not have a control on it, it also crashes.
Here is my xaml code:
<Grid x:Name="LayoutRoot" Background="White" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<core:RadExpander x:Name="treeExpander" ExpandDirection="Right" Grid.Row="2" Grid.Column="1" Grid.RowSpan="2">
<Grid x:Name="treeExpanderGrid">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button x:Name="getTestsButton" Grid.Row="0" Grid.Column="0" Width="150" >
<TextBlock x:Name="getTestsText" Text="Display Tests"></TextBlock>
</Button>
<telerikInput:RadComboBox x:Name="comboBoxCompany" Grid.Row="1" Grid.Column="0" Width="200"></telerikInput:RadComboBox>
<telerikNavigation:RadTreeViewItem x:Name="treeItem" ></telerikNavigation:RadTreeViewItem>
<telerikNavigation:RadTreeView x:Name="treeWells" Width="auto" Height="auto" HorizontalAlignment="Left"
VerticalAlignment="Top"
IsTriStateMode="True" IsLineEnabled="True"
IsOptionElementsEnabled="True" ItemsOptionListType="CheckList"
ItemsSource="{Binding Source={StaticResource TreeAreaDS}}"
ItemTemplate="{StaticResource area}"
Grid.Row="2" Grid.Column="0" BorderThickness="1" BorderBrush="Blue"/>
</Grid>
</core:RadExpander>
<telerikGrid:RadGridView x:Name="grid" Grid.Row="2" Grid.Column="2"> </telerikGrid:RadGridView>
<telerikNavigation:RadMenu x:Name="filterOptionsMenu" Grid.Row="0" Grid.Column="2">
<telerikNavigation:RadMenuItem x:Name="filterMenuItem" Header="Filter">
<telerikNavigation:RadMenuItem x:Name="prevTestMenuItem" IsCheckable="True" Header="Prev Test" ></telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenu>
</Grid>