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

Really bad performance in debug with 2009 Q3

6 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
4ward s.r.l.
Top achievements
Rank 1
4ward s.r.l. asked on 09 Nov 2009, 11:56 AM
I updated Telerik to 2009 Q3 and I saw really bad performance in debug (nearly unusable). If we compile in release it's fast as with Q2 in debug.

Are you already aware of this issue ?

Kind regards,

Ivan

6 Answers, 1 is accepted

Sort by
0
4ward s.r.l.
Top achievements
Rank 1
answered on 09 Nov 2009, 01:47 PM
More info on this issue:
  • It happens when application is started from VS (F5) and it does not happen when started without debugger (CTRL+F5).
  • I'm using VS 2010 Beta 2

I'm now going to test it on VS 2008 SP1

0
Vlad
Telerik team
answered on 10 Nov 2009, 07:29 AM
Hi Ivan,

I've tried to reproduce such behavior using our "Scrolling 50,000,000 cells" demo in VS 2008 and VS 2010 however everything worked pretty fast on my end. You can check the attached projects for more info.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
4ward s.r.l.
Top achievements
Rank 1
answered on 17 Nov 2009, 06:06 PM
I confirm that your code works properly, but I also confirm that our is not working, probably is due to the container with height and width not fixed as mentioned in another forum. I will try that solution, otherwise I'll try to create a sample that reproduce the issue and I'll file you a bug.

Thanks for the support.
0
4ward s.r.l.
Top achievements
Rank 1
answered on 17 Nov 2009, 06:40 PM
I found the issue ! The big performance hit happens when you have some columns defined in xaml and other added programatically or autogenerated.

You can try to replace:
    <Grid> 
          <telerik:RadGridView ItemsSource="{Binding LargeData}"
    </Grid> 




  with:

  <Grid> 
        <telerik:RadGridView ItemsSource="{Binding LargeData}"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Width="30" Header="" UniqueName="columnSelector"
                    <telerik:GridViewColumn.CellTemplate> 
                        <DataTemplate> 
                            <CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" /> 
                        </DataTemplate> 
                    </telerik:GridViewColumn.CellTemplate> 
                </telerik:GridViewDataColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 

and you'll see that scroll performance decrease, this is more visible if you use the scroll on the right side, performance are ok with Q2.

Hope this helps,

4ward
0
4ward s.r.l.
Top achievements
Rank 1
answered on 18 Nov 2009, 09:24 AM
Last additional info on the problem:
- if you use both UniqueName and BindingExpression there is a huge drawback in perfomance if uniqueName is not present in the object used in binding.

This was not happening in Q2
0
Accepted
Vlad
Telerik team
answered on 20 Nov 2009, 07:48 AM
Hi,

If you have binding to an invalid property you will get an exception in output and indeed you will get performance hit.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
4ward s.r.l.
Top achievements
Rank 1
Answers by
4ward s.r.l.
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or