Smooth Scrolling

2 posts, 0 answers
  1. Bob
    Bob avatar
    59 posts
    Member since:
    Aug 2010

    Posted 19 Sep 2011 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 22 Sep 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top