nav100
nav100

Reputation: 411

Increase the performance of asp.net page

We have one page which is about 300 KB after compression of viewstate. It's loading very slow. We are using telerik tabstrip. There are 8 user controls being loaded for this tab. Is there anyway we can improve the performance of this page? Any ideas please.

Thanks..

Upvotes: 1

Views: 2447

Answers (6)

Mike H.
Mike H.

Reputation: 1751

You could always not use telerik! It creates such a heavy internal dependence on itself with bloated, unnecessarily complex features it makes me want to vomit. Do it yourself for best results...MVC rocks! Or just follow the answers above and get ready for lots of trial and error... :sadface:

Upvotes: 0

Adam Spicer
Adam Spicer

Reputation: 2721

Our of the box use of the telerik tab control is not efficient. Each tab not in use STILL GETS put through the page lifecycle. There isn't anything that you can do about that out of the box, but with a little extra configuration you can gain some efficiency.

For the tab that is to be shown, you can dynamically LoadControl for the UserControl that is to be shown on the selected tab.

Upvotes: 0

carlbergenhem
carlbergenhem

Reputation: 1989

In terms of the RadTabStrip itself you could also potentially look into using the Load-on-Demand feature as well, found on this demo page.

As for overall page efficiency if you are using the Telerik RadControls already you could look into using the RadAjax control; particularly the RadAjaxManager. This will allow you set up partial postbacks and get a more efficient page. A demo of this can be found here.

Upvotes: 0

ewitkows
ewitkows

Reputation: 3618

You can try page level caching - here

Upvotes: 0

Brian Mains
Brian Mains

Reputation: 50728

Yes, don't enable viewstate is one approach. Alternatively, you could load each tab on demand, so when the tab is clicked, cause a postback, and show that tab's content (which could be wrapped in a RadAjaxPanel from Telerik).

Lastly, Telerik has a rich web service model; bind the information to the UI via web services when the tab is clicked. This is something we had to do and it worked out very well performance-wise.

HTH.

Upvotes: 2

Related Questions