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

[Solved] Maintaining Disabled State of a RadComboBox

3 Answers 128 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
PRIYA
Top achievements
Rank 1
PRIYA asked on 24 Aug 2009, 06:52 PM
Hi,

I am using a radcombobox, where I set it as disabled using javascript functions such as
radcombobox1.disable()
or
radcombobox1.set_enabled(false)

But the combobox gets enabled once the page gets refreshed.
How can the viewstate of the combobox be maintained?

Thanks in advance...

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2009, 10:14 AM
Hi Priya,

This is an expected behavior since the changes made on the client side will be lost on a postback or Page refresh. One another suggestion will be to store the state of the combobox in a cookie on the client side. Then in the client Load event of the Radcombobox access the value from the cookie and disable the Combobox accordingly.

You can also refer the following link which explains how to save, read and erase cookies on the client side.
http://www.quirksmode.org/js/cookies.html

Thanks
Princy
0
PRIYA
Top achievements
Rank 1
answered on 25 Aug 2009, 04:46 PM
but the values which i set in the client side for telerik textbox/radcombobox is retained even after postback. how this scenario is working?
0
Genady Sergeev
Telerik team
answered on 31 Aug 2009, 10:46 AM
Hi PRIYA,

Actually this happened to be a bug in the RadComboBox. The good news are that we have successfully fixed it. You use the fixed version of RadCombo forth from the tomorrow's internal build. I have also updated your Telerik points for pointing the issue to us.

Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
PRIYA
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
PRIYA
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or