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

Button will not activate when inside radExpander, Bug?

2 Answers 55 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 23 Dec 2008, 10:57 PM
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 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 26 Dec 2008, 08:38 AM
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.
0
Chad
Top achievements
Rank 1
answered on 29 Dec 2008, 11:17 PM
ahh, that is probably the problem, that treeviewitem should not be there, I'll remove it and see what happens, thanks alot.
Tags
Expander
Asked by
Chad
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Chad
Top achievements
Rank 1
Share this question
or