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

Combobox javascript issue

2 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
DvdBrink
Top achievements
Rank 1
DvdBrink asked on 03 Feb 2012, 02:08 PM
Hi Telerik,

When I disable radcombobox with javascript, it is still possible to change items.

Here are some steps to reproduce this behavior.

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
On the above link, when I execute the following javascript (with firebug):
$find("RadComboBox1").set_enabled(false)
The combo is disabled, but when i focus the input element and start to type, the items change.

Is this a bug or is there another function which should be called?

I got firefox 9.0.1

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 03 Feb 2012, 02:30 PM
Hello,

You can try the following javascript to disable the RadComboBox.
JS:
<script type="text/javascript">
 function OnClientLoad(sender, args)
 {
   sender.disable();
 }
</script>

Thanks,
Princy.
0
DvdBrink
Top achievements
Rank 1
answered on 03 Feb 2012, 02:33 PM
Hi Princy,

I found the same solution a few seconds ago! but thanks!
I think it is still a bug in Radcombobox, because disable/enable and set_enabled(false)/set_enabled(true) should work the same!

But my issue is solved!
Tags
ComboBox
Asked by
DvdBrink
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
DvdBrink
Top achievements
Rank 1
Share this question
or