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

GridView Performance in TabControl

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 30 Jan 2012, 09:11 PM
I have a tab control with 2 tabs.  the first has a telerik wpf gridview and the other has an out of the box msft datagrid.
when selecting the tabs the tab with the datagrid shows much faster than selecting the tab with the gridview. the datasources are exactly the same, both xaml views use the same viewmodel.  the grids have the same columns and same resources.  it seems that the gridview is calling IDataErrorInfo.Item on each of the items in the datasource when the tab is selected.  Why?  Is there a way to prevent this?

Thanks,
Nick

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 02 Feb 2012, 01:31 PM
Hi Nick,

This would be the expected behavior when your object implements IDataErrorInfo. If you perform validation for a specific property, the RadGridView will show the error accordingly - by default RadGridView.ValidatesOnDataErrors perform validation in view and in edit mode. I am attaching a small example for a reference.

Let us know if you have additional questions.

Kind regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Nick
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or