IsExpanded do nothing at startup

5 posts, 0 answers
  1. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 15 Sep 2011 Link to this post

    Hi,

    since I upgraded from V2010.3.1314.35 to V2011.2.712.35, when my application start, my expanders show nothing.
    In my XAML I placed component into my expander and I set the IsExpanded property to True but when my application shown, the button of my expander indicate me that he is expanded but his size still like he have nothing inside him. If I click on the button to collapsed the expander and then reclick on the button to expand my expander, everything appear!!!

    Whan I was with version V2010.3.1314.35 it was ok!!!

    Here is the piece of code in my XAML

     

     

    <telerik:RadExpander Name="SignCtxSearchExpander" IsExpanded="False" Style="{DynamicResource REF-RadExpanderStyle-Dark}" telerik:RadDockPanel.Dock="Top" Header="{StaticResource SearchFilter}" VerticalAlignment="Top" GotFocus="SignCtxSearchExpander_GotFocus" LostFocus="SignCtxSearchExpander_LostFocus">

     

     

     

    <Grid Style="{DynamicResource REF-GridStyle-Dark}">

     

     

     

    <telerik:RadDockPanel Style="{DynamicResource REF-RadDockPanelStyle-Dark}">

     

     

     

    <Grid Margin="6" telerik:RadDockPanel.Dock="Bottom">

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition/>

     

     

     

    <ColumnDefinition/>

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <telerik:RadButton Grid.Column="0" HorizontalAlignment="Right" Name="SignCtxBtnSearchByFilters" Content="{StaticResource Search}" Padding="3" Margin="6,0,6,6" Style="{DynamicResource REF-RadButtonStyle-Dark-Main}" Click="SignCtxSearchByFilters_Click" Height="25" />

     

     

     

    <telerik:RadButton Grid.Column="1" HorizontalAlignment="Left" Name="SignCtxBtnResetFilters" Content="{StaticResource Reset}" Padding="3" Margin="6,0,6,6" Style="{DynamicResource REF-RadButtonStyle-Dak-Ligth}" Click="SignCtxResetFilters_Click" Height="25" />

     

     

     

    </Grid>

     

     

     

    <Grid Margin="6" HorizontalAlignment="Center" Style="{DynamicResource REF-GridStyle-Dark}">

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition/>

     

     

     

    <RowDefinition/>

     

     

     

    </Grid.RowDefinitions>

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="50" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="125" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="100" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="125" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="100" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="125" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="100" />

     

     

     

    <ColumnDefinition Width="Auto" MinWidth="125" />

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

    <TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource TranscriptionPeriodFrom}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground></TextBlock>

     

     

     

    <TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource PeriodTo}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground></TextBlock>

     

     

     

    <TextBlock Grid.Column="2" Grid.Row="0" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource Department}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground>:</TextBlock>

     

     

     

    <TextBlock Grid.Column="4" Grid.Row="0" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource Modality}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground>:</TextBlock>

     

     

     

    <TextBlock Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource Physician}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground>:</TextBlock>

     

     

     

    <TextBlock Grid.Column="6" Grid.Row="0" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource VisitNumber}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground>:</TextBlock>

     

     

     

    <TextBlock Grid.Column="4" Grid.Row="1" HorizontalAlignment="Right" Margin="1" TextWrapping="Wrap" Text="{StaticResource ReqCode}">

     

     

     

    <TextBlock.Foreground>

     

     

     

    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlTextColorKey}}"/>

     

     

     

    </TextBlock.Foreground>:</TextBlock>

     

     

     

    <CheckBox Grid.Column="6" Grid.Row="1" Name="SignCtxUrgent" HorizontalAlignment="Right" VerticalAlignment="Top">Urgent</CheckBox>

     

     

     

    <telerik:RadDatePicker Name="SignCtxFromDate" Margin="1" Grid.Row="0" Grid.Column="1" Height="21" SelectionChanged="SignCtxFromDate_SelectionChanged" />

     

     

     

    <telerik:RadDatePicker Name="SignCtxToDate" Margin="1" Grid.Row="1" Grid.Column="1" Height="21" SelectionChanged="SignCtxFromDate_SelectionChanged" />

     

     

     

    <telerik:RadComboBox Name="SignCtxDepartment" Grid.Column="3" Height="21" Width="175" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="{StaticResource ClearSelection}" />

     

     

     

    <telerik:RadComboBox Name="SignCtxPhysician" Grid.Column="3" Grid.Row="1" Height="21" Width="175" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="{StaticResource ClearSelection}" />

     

     

     

    <telerik:RadComboBox Name="SignCtxModality" Grid.Column="5" Height="21" Width="175" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="{StaticResource ClearSelection}" />

     

     

     

    <telerik:RadMaskedTextBox Name="SignCtxReqCode" Grid.Column="5" Grid.Row="1" Height="21" Width="175" MaskType="None" />

     

     

     

    <telerik:RadMaskedTextBox Name="SignCtxVisitNumber" Grid.Column="7" Grid.Row="0" Margin="1" Width="125" MaskType="None" />

     

     

     

    </Grid>

     

     

     

    </telerik:RadDockPanel>

     

     

     

    </Grid>

     

     

     

    </telerik:RadExpander>

     


    Thank's
  2. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 16 Sep 2011 Link to this post

    Hi,

    I forgot to tell you, if I set "telerik:AnimationManager.IsAnimationEnabled="False"", it's working!!!

    Thank's
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 16 Sep 2011 Link to this post

    Hi Oliver,

    We recently implemented some changes in teh RadExpander control in order to improve its performance. In order to do so we needed to change its CantrolTemplate as well. And from the code-snippet you sent I noticed that you have defined a custom style for your RadExpander. But you'll need to update it based on the latest defualt ControlTemplate of teh RadExpander. You can use ExpressionBlend to get the latest style of the control and modify it accordingly to your needs. Or you can send us your current custom style and a snapshot of teh styled RadExpander and we will update your style to work with the latest release of the control.

    Best wishes,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. ITC
    ITC avatar
    19 posts
    Member since:
    Nov 2010

    Posted 23 Dec 2011 Link to this post

    Hi

    I have managed to track down the IsExpanded bug to a minimal required sample. It seems that if you add a RadComboBox to the Expander control content while it is hosted in another Rad container such as a RadTabControl then the RadExpander does not render the expanded content on the first try.

    Use the following code segment to see.

    <Window x:Class="RadControlsWpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525">
      <Grid>
        <telerik:RadTabControl>
          <telerik:RadTabItem Header="MyTabItem">
            <StackPanel>
              <telerik:RadExpander IsExpanded="true">
                <StackPanel>
                  <telerik:RadComboBox SelectedItem="{Binding SomeProperty, Mode=TwoWay}"
                                       DisplayMemberPath="Name" ItemsSource="{Binding SomeList}" />
                  <Border Background="Blue" Height="100" />
                </StackPanel>
              </telerik:RadExpander>
            </StackPanel>
          </telerik:RadTabItem>
        </telerik:RadTabControl>
      </Grid>
    </Window>
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 28 Dec 2011 Link to this post

    Hi Dirk,

     We are aware of this issue and we have previously logged it in our PITS. The description in the PITS item describes situation similar to your XAML. Unfortunately, we cannot provide an estimated time when this will be resolved. 

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready