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

Performance Problem with Hierarchical Grid in Edit Mode

1 Answer 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Herman Gouw
Top achievements
Rank 2
Herman Gouw asked on 23 Mar 2011, 06:32 AM
Hi,

In my current project, I have written a web page containing a Hierarchical RadGrid.

On each data row of the grid, there are 3 CheckBoxes set to edit mode.

The users are able to check or uncheck any of the CheckBoxes and click the Submit button to save the data on the back-end.

The data displayed on the grid are stored on a DataSet.

All operations on the web page are done on the server-side.

The development and testing stages have been completed, and the project is in the UAT stage right now.

However, there seems to be a performance problem with the web page when there are many data rows.

It is very slow to perform the following operations:
- to open up a tree level (by clicking the <)
- to check or uncheck the CheckBox

The screenshot of the web page can be found here.

The ASPX source code can be found here while the ASPX.CS source code can be found here.

When I did a View Source on the browser, the file is pretty huge and can be found here.

Can you please help me with the following:
- how to improve the performance for the operations above.
- how to reduce the size of code (in particular the ViewState).
- if there is any problem or weaknesses in my approach as shown in the source code.

Regards,
Herman

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Mar 2011, 02:23 PM
Hello Herman,

If you work in hierarchy mode to optimize the control's performance, you can use a combination of ServerOnDemand and Client hierarchy load modes based on the information from  the resources below:
http://www.telerik.com/help/aspnet/grid/grdhierarchyloadmodes.html
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodemixed/defaultcs.aspx

Other useful tips for performance optimizations can be found under the 'Performance tips and tricks' chapter in the RadGrid for ASP.NET AJAX online help and this page:

http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx

Best wishes,
Pavlina
the Telerik team
Tags
Grid
Asked by
Herman Gouw
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or