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

Smooth Scrolling

1 Answer 140 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Bob asked on 19 Sep 2011, 04:22 PM
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

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Sep 2011, 03:31 PM
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 >>

Tags
Expander
Asked by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Petar Mladenov
Telerik team
Share this question
or