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

[Solved] OutPut cache RadComboBox

4 Answers 190 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Yousuf Mohammed
Top achievements
Rank 1
Yousuf Mohammed asked on 11 Jun 2008, 03:48 PM
Hi
I have a RadComboBox in a usercontrol which is displayed in a masterpage. With the RadComboBox my page Render size is 140KB. I am trying to do output cache for the usercontrol with radcombox. But doing so, comboxboxitems are not bounded to the RadCombobox. Items are displayed for the first time the combo box is displayed. But after that the combobox is cached and no items being displayed. Page render size decreases to 70KB if I output cache the ComboBox. As the radcombobox is on everypage i want to output cache  the combobox. Is this possible to do or I am just being stupid to output cache a combobox?
Thanks
-Yousuf

4 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 11 Jun 2008, 04:13 PM
Hello Yousuf Mohammed,

Have you followed the steps described here: 
(ID#954) How to use Telerik.Web.UI components in a user control with OutputCache


Sincerely yours,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Yousuf Mohammed
Top achievements
Rank 1
answered on 11 Jun 2008, 04:43 PM
Hello Veskoni 
    Thanks for the quick reply and the link.
I registered the css files, but didnt know I had to register the scripts as well.
It works fine after registering the scripts. But the selected Index changed doesnt fire for the ComboBox if I output cache the combobox usercontrol.
I know the problem isnt with the RadControls. I guess it would be the same even if i used the asp.net dropdownlist control. Please let me know if you have any suggestions of how to solve this issue.
Thanks
-Yousuf
0
Yousuf Mohammed
Top achievements
Rank 1
answered on 11 Jun 2008, 05:39 PM
I have figured it out that controls are'nt instantiated when output cache enabled.
That's the reason why the events dont fire for the control. Now I was wondering is there any other way that I can decrease the render size for the RadcomboBox. Currently the ComboBox takes 80KB to render the control.
-Thanks
0
Veselin Vasilev
Telerik team
answered on 16 Jun 2008, 03:02 PM
Hi Yousuf,

Have you set the AutoPostBack property to true?

Find attached a sample project which demonstrates how the output caching can be used in user control with RadComboBox.

Also, I suggest you have a look at the following articles under this topic: Optimization Tips

Sincerely yours,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Yousuf Mohammed
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Yousuf Mohammed
Top achievements
Rank 1
Share this question
or