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

Grid Rendering Performance

3 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 13 Oct 2010, 04:16 PM

I have a radgrid that takes about a second to scroll from page to page.  This is without a page control.  Only a 150 records, which are already in the grid, I am not experiencing a delay from the database.

What the problem seems to be is when I add custom columns.  The last column I added was a custom column that had a radrating control in it.  This made paging 200% worse. 

Should I not use the RadRating control in a grid? 

Is there a setting to make the perfromance better?

Maybe I am make the column in the grid wrong?

At this time, I am most likely going to remove the column as the users are complaining.

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


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Oct 2010, 09:57 AM
Hi Bryan,

 Possible solution will be to create your own column and cache the UI element (RadRating in this case). I've attached small example application to illustrate you this. 

Best wishes,
Vlad
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
Bryan
Top achievements
Rank 1
answered on 19 Oct 2010, 03:58 PM
Wow cool, did not know that would be effective.

If you reuse the control how does it know what value to show? 

How would 2 way databinding work when its the same control?

I will try it.

Bryan
0
Vlad
Telerik team
answered on 20 Oct 2010, 07:06 AM
Hi Bryan,

 The value will be changed because of the Binding - I believe that you will not have any problems with TwoWay binding in this case. 

Regards,
Vlad
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
Tags
General Discussions
Asked by
Bryan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Bryan
Top achievements
Rank 1
Share this question
or