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

performances regarding the view state

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Régis Giudicelli
Top achievements
Rank 1
Régis Giudicelli asked on 18 Dec 2008, 10:38 AM
Hi
I'm working on a web-application ajax-enhanced, with loads of telerik compononents on each page. An expert came and audited the app mainly for memoery leaks we experienced with some clients. After seeing the code and the pages weight, he told us the page view state was way too heavy, and that we had to optimise each and every page by working with the enable view state of each control, which suprised me as I never saw the view state as an enemy and thought that disabling view state on elements was for specific scenarios... the question is do I really have to manually manage the view state of the controls, which means I have to browse each of the 500-pages of the application and asking myself of each control of this pages if I need to enable the view state or not. I must say I'm quite sceptical with this analyse so I would like to know...

Thanks in advance
R Giudicelli

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Dec 2008, 08:41 AM
Hi RĂ©gis,

Basically, most of the controls rely on having the viewState enabled, to perform essential operations. For example, some operations in Telerik RadGrid like data extraction through the ExtractValuesFromItem method, grouping, hierarchical views expand/collapse, automatic data source operations, custom edit forms (WebUserControl and FormTemplate) or filtering require that the EnableViewState is set to true.
Unless the viewstate is not causing any tangible performance problems, you should not be looking for ways to disable it. Additionally, the following post contains additional information on different optiomization techniques for the controls suite.
I hope this information helps.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Régis Giudicelli
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or