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

Render/Display Speed WPF RadRating

2 Answers 79 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 12 Oct 2010, 10:55 PM

I put this control on a grid and it dramatically reduces the rendering speed of the grid.  It takes noticeably longer to scroll down.

Am I doing something wrong?

Here is what I have added to the Grid.

<telerik:GridViewDataColumn  DataMemberBinding="{Binding Path=Rating}" Header="Rating" MinWidth="60" Width="SizeToCells">
                       <telerik:GridViewColumn.CellTemplate>
                          <DataTemplate>
                             <telerikInput:RadRating Name="_leadRating"  Value="{Binding Path=Rating,Mode=TwoWay}" UseLayoutRounding="True">
                                <i:Interaction.Triggers>
                                   <i:EventTrigger EventName="ValueChanged">
                                      <cmd:EventToCommand Command="{Binding Path=DataContext.ChangeRatingCommand, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl, AncestorLevel=1}}" CommandParameter="{Binding}" />
                                   </i:EventTrigger>
                                </i:Interaction.Triggers>
                             </telerikInput:RadRating>
                          </DataTemplate>
                       </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewDataColumn>

2 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 14 Oct 2010, 08:52 AM
Hi Bryan,

I tried to reproduce your problem, but with no luck. Could you please send me your sample project, so I will be able to better assist you?

All the best,
Viktor Tsvetkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Adi Constantin
Top achievements
Rank 2
answered on 02 Mar 2012, 02:51 PM
Hi Bryan,

The issue might be appearing when you have your mouse over the RadRating control. Because you fire a saving action at every property change, depending on your target resources, it might slow down the drawing of the grid.
If I'm right, putting the RadRating into a separate thread won't do the trick, because you save too many ratings, therefore loosing it's functionality.
You should try something else rather than ValueChanged (try MouseDown)

Have a great day!
Adi
Tags
Rating
Asked by
Bryan
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Adi Constantin
Top achievements
Rank 2
Share this question
or