Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > Combobox javascript issue

Answered Combobox javascript issue

Feed from this thread
  • Dick Van den Brink avatar

    Posted on Feb 3, 2012 (permalink)

    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

    Reply

  • Answer Princy MVP avatar

    Posted on Feb 3, 2012 (permalink)

    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.

    Reply

  • Dick Van den Brink avatar

    Posted on Feb 3, 2012 (permalink)

    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > Combobox javascript issue
Related resources for "Combobox javascript issue"

ASP.NET ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]