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

RadGridView perfomance issues as number of rows incresed

3 Answers 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kavita
Top achievements
Rank 1
Kavita asked on 01 May 2013, 02:32 PM
Hi,

In my wpf application i am using tab control. In first tab i am using list box to show the data and in second tab i am using rad Grid View to show data.

After loading both tabs when i switch the tab from grid view tab to list box then there is no delay in loading that view but when i switch back to the previous tab (Grid View) it takes some delay to load the data .

It seems like when number of rows increses in Rad grid view it creates some performance issues.

In tab switching it should not be a problem if we have loaded it already as it works perfect in listbox.

Is there any property to prevent this repopulation of rad grid view.

Looking forward for your reply .. It is really urgent.

Thanks

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 02 May 2013, 07:21 AM
Hi,

You can try setting IsContentPreserved="True" on the tab control so that it keeps its content between switching tabs.

In general, it is normal that a RadGridView is slower than a plain ListBox. The ListBox has zero features compared to RadGridView which has hundreds of them and naturally that affects performance.

Kind regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kavita
Top achievements
Rank 1
answered on 02 May 2013, 07:37 AM
But in our application we are using windows tab control. It doesn't have IsContentPreserved Property.

Normally when we are navigating back from a page to previous page containing grid view then also it takes some delay to populate already loaded data.

This issue is not with tab switching only, whenever we are populating grid rows then some delay happens even if number of rows are only 10.

If number of rows are much then this behaviour is acceptable but user is seeing a differnece in the list populated via list box and grid view.

Is there any property of grid view to stop some internal events that are taking time when grid view is visible or invisible in navigations or tab switching kind of scenarios. Data is already loaded, delay occurs when we are switching from a page or navigating from that control.

Waiting for your reply.

Thanks And Regards,
0
Rossen Hristov
Telerik team
answered on 02 May 2013, 07:54 AM
Hello,

We are not sure why the stock TabControl behaves like this and recreates everything each time you switch a tab. You can try with the Telerik RadTabControl which has a property called IsContentPreserved which does exactly what you need -- preserves content.

I am afraid that there is no property that will turn off everything that RadGridView does internally.

Also, as I already mentioned, it is not very fair to compare a ListBox which has a total of zero features with a full-blown control like RadGridView. It is up to you to decide which control best suits your needs -- a ListBox that cannot do anything but is fast or a RadGridView that can do everything but is slower than the ListBox.

I hope this helps.

Regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Kavita
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Kavita
Top achievements
Rank 1
Share this question
or