Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > Smooth Scrolling

Not answered Smooth Scrolling

Feed from this thread
  • Bob avatar

    Posted on Sep 19, 2011 (permalink)

    I am having an issue with the RadExpander's scrolling. I have set the RadEpander to grow to 300 pixels in Height when a user receives an error. But in some cases the error may be more than 300 pixels height. When the user scrolls to see the information in the RadExpander, the scrolling is choppy and is not smooth at all. Although you may see all of the data, it jumps down to the next line instead of scrolling smoothly. Is there any way to change this?
    <telerik:RadExpander HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" Background="#FFFFFF" MinWidth="925" MaxWidth="1600" MaxHeight="300" x:Name="ErrorExpander" ExpandDirection="Up" IsExpanded="True" ScrollBar.Scroll="ErrorExpander_Scroll">
           <telerik:RadExpander.Header>
               <TextBlock>Errors</TextBlock>
           </telerik:RadExpander.Header>
           <telerik:RadExpander.Content>
               <DataGrid x:Name="dgError" Padding="0,0,0,0" CanUserAddRows="False" CanUserResizeColumns="True" CanUserReorderColumns="False" CanUserSortColumns="False"
                             ItemsSource="{Binding CCMSErrors}" AutoGenerateColumns="False" FontFamily="/CCMS.WPF.CommonControl;component/Fonts/#Segoe UI" FontSize="15"
                             RowBackground="#FFFFFFFF" AlternatingRowBackground="#FFF3F3F3" Background="{DynamicResource GridGradientBkrd}" GridLinesVisibility="All"
                             Margin="0,0,0,0" MinHeight="20" ScrollBar.Scroll="ErrorExpander_Scroll">
                   <DataGrid.Columns>
                       <DataGridTemplateColumn Header="Time" IsReadOnly="True" MinWidth="100" MaxWidth="100">
                           <DataGridTemplateColumn.CellTemplate>
                               <DataTemplate>
                                   <TextBlock Style="{DynamicResource ErrorOutputText}" Text="{Binding TimeStamp, StringFormat=hh:mm tt}" TextWrapping="Wrap"></TextBlock>
                               </DataTemplate>
                           </DataGridTemplateColumn.CellTemplate>
                       </DataGridTemplateColumn>
                       <DataGridTemplateColumn x:Name="colMessage" Header="Message" IsReadOnly="True" MinWidth="150" MaxWidth="150">
                           <DataGridTemplateColumn.CellTemplate>
                               <DataTemplate>
                                   <TextBlock Style="{DynamicResource ErrorOutputText}" Text="{Binding Message}" TextWrapping="Wrap"></TextBlock>
                               </DataTemplate>
                           </DataGridTemplateColumn.CellTemplate>
                       </DataGridTemplateColumn>
                       <DataGridTemplateColumn Header="Suggestion" IsReadOnly="True"  MinWidth="150" MaxWidth="150">
                           <DataGridTemplateColumn.CellTemplate>
                               <DataTemplate>
                                   <TextBlock Style="{DynamicResource ErrorOutputText}" Text="{Binding Suggestion}" TextWrapping="Wrap"></TextBlock>
                               </DataTemplate>
                           </DataGridTemplateColumn.CellTemplate>
                       </DataGridTemplateColumn>
                       <DataGridTemplateColumn Header="Details" IsReadOnly="True" x:Name="colDetail" MinWidth="250" Width="1200*" MaxWidth="1200">
                           <DataGridTemplateColumn.CellTemplate>
                               <DataTemplate>
                                   <TextBlock Style="{DynamicResource ErrorOutputText}" Text="{Binding Converter={StaticResource ExceptionToStringConverter}}" TextWrapping="Wrap"></TextBlock>
                               </DataTemplate>
                           </DataGridTemplateColumn.CellTemplate>
                       </DataGridTemplateColumn>
                   </DataGrid.Columns>
               </DataGrid>
           </telerik:RadExpander.Content>
       </telerik:RadExpander>
    Thanks,
    Strasz

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Sep 22, 2011 (permalink)

    Hello Bob,

    Unfortunately, we were unable to reproduce such issue using some of your code ( we don't have your styles, your validation logic, your ScrollViewer event Handlers). Is ti possible for you to open a new support ticket with a sample attached? This way we would be much better able to help you and investigate this in depth. Thank you for your understanding and for your cooperation in advance.

    Regards,
    Petar Mladenov
    the Telerik team

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

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > Smooth Scrolling
Related resources for "Smooth Scrolling"

WPF Expander Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]