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

Performance problem with RadGridView

4 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 14 Nov 2013, 04:13 PM
Hello,
i have performance problem with RadGridView. My project uses RadGridView with only 1000 items but with many columns. I tried all i can to resolve the problem without success.
Some specials, i have 2 customized columns, use normal CheckBox and normal TextBox of microsoft. I need them to implement One-Click-Edit function easily.
The problem is that,
1.) the scrollbar is very slow, even though i have only 1000 items.
2.) i always got debug error, when i scroll the GridView. The error info looks like that:
System.Windows.Data Information: 41 : BindingExpression path error: 'IsChecked' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=IsChecked; DataItem=null; target element is 'CheckBox' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=IsChecked; DataItem=null; target element is 'CheckBox' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=IsChecked; DataItem=null; target element is 'CheckBox' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Information: 41 : BindingExpression path error: 'Property1' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=Property1; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=Property1; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=Property1; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')

I attached my project, please check, wheather i have done something wrong.
Link:
http://www.file-upload.net/download-8291326/RadGridViewPerformance.zip.html

Thanks a lot!

Ivan

4 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 14 Nov 2013, 04:45 PM
Hello,

I would suggest you to check Lightweight templates for RadGridView which main idea is to minimize the number of visual elements within the templates thus improving the performance. As for the binding expression errors, I did not see any while testing your project. Please take a look at this video and let me know in case I am missing something.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ivan
Top achievements
Rank 1
answered on 14 Nov 2013, 05:02 PM
Hello Vera,

thanks for your answer. Unfortunately i need the themes and will enable users to change theme in runtime.
I have noticed, that you have test in a small window. With that you will not see the performance problem. Please check that with full window mode.
Currently i have no ideal, why you have not seen the binding expression errors. I'll try to figure it out.
Have you only other suggestion? Thanks!

Ivan
0
Ivan
Top achievements
Rank 1
answered on 15 Nov 2013, 09:31 AM
Hello Vera,
I have updated my project with assemblies NoXaml and use only the Windows7 theme.
Please test in full screen. You should see the performance problem.

Project Link:
http://www.file-upload.net/download-8293458/RadGridViewPerformance_NoXaml.zip.html
0
Vera
Telerik team
answered on 15 Nov 2013, 10:03 AM
Hello Ivan,

Indeed, I observed the performance problem but made the video with a smaller window in order to show the output without any errors.
As for the lightweight templates, they are available with our Implicit Styles which can be used for switching themes at runtime as well. Please check this blog post for a reference on the pros and cons of the Implicit styles.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Vera
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or