Button will not activate when inside radExpander, Bug?

3 posts, 0 answers
  1. Chad
    Chad avatar
    25 posts
    Member since:
    Nov 2008

    Posted 23 Dec 2008 Link to this post

    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>
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 26 Dec 2008 Link to this post

    Hello Chad,

    From your .xaml I see a TreeViewItem out of the TreeView. Is this your actual markup or have you pasted this one by mistake?

    If this does not cause the problem for the Expander, can you try isolate the issue by removing controls from the markup? Do you use the latest Q3 2008 SP we released last week?

    Kind regards,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Chad
    Chad avatar
    25 posts
    Member since:
    Nov 2008

    Posted 29 Dec 2008 Link to this post

    ahh, that is probably the problem, that treeviewitem should not be there, I'll remove it and see what happens, thanks alot.
Back to Top