I m using RadCombo . Using javascript i m enabling and disabling the radcombo. But i have a problem when i enable the radcombo only combo will be enabled but items will be disabled. Can anybody please give me the solution for this problem. I want all the items of the radcombo is to be enabled when the radcombo is enabled .
My sample code is as below where chkSpecClassOne, chkEntireClassOne are checkbox control. I have called this code in check event of chkSpecClassOne checkbox .
function focusSpecClassOne()
{
var comboSpec = $find("<%= radcmbDrugsOne.ClientID %>");
var chkSpOne=document.getElementById("chkSpecClassOne").checked;
if(chkSpOne)
{
comboSpec.enable();
var comboItem = comboSpec.get_selectedItem();
if(comboItem && !comboItem.get_enabled())
{
combo.commitChanges();
comboItem.enable();
combo.trackChanges();
}
document.getElementById ("chkEntireClassOne").checked=false;
}
else
{
comboSpec.disable();
document.getElementById ("chkEntireClassOne").checked=true;
}
}
9 Answers, 1 is accepted
I could not reproduce the problem in a simple page:
<telerik:RadComboBox ID="RadComboBox1" runat="server" |
<Items> |
<telerik:RadComboBoxItem Text="item 1" /> |
<telerik:RadComboBoxItem Text="item 2" /> |
<telerik:RadComboBoxItem Text="item 3" /> |
</Items> |
</telerik:RadComboBox> |
<script type="text/javascript"> |
function toggle() |
{ |
var combo = $find("<%= RadComboBox1.ClientID %>"); |
if (combo.get_enabled()) |
combo.disable() |
else |
combo.enable(); |
} |
</script> |
Best wishes, Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Actually my question is consider the following the radcombo
<telerik:RadComboBox ID="RadComboBox1" runat="server"
<Items>
<telerik:RadComboBoxItem Text="item 1" />
<telerik:RadComboBoxItem Text="item 2" />
<telerik:RadComboBoxItem Text="item 3" />
</Items>
</telerik:RadComboBox>
assume that RadComboBox1 is disabled(in page_load). Now i m enabling RadComboBox in client side.Then RadComboBox1 is enabled but items inside the RadComboBox1(in the above example item 1,item 2,item 3 ) will be disabled only . Can u tell me the solution for the same.
Thanks in advance,
Laila
Again, I could not reproduce the problem. Here is my complete page:
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:RadComboBox ID="RadComboBox1" runat="server" Enabled="false"> |
<Items> |
<telerik:RadComboBoxItem Text="item 1" /> |
<telerik:RadComboBoxItem Text="item 2" /> |
<telerik:RadComboBoxItem Text="item 3" /> |
</Items> |
</telerik:RadComboBox> |
<input type="button" value="enable" onclick="enableCombo()" /> |
<script type="text/javascript"> |
function enableCombo() { |
$find("<%= RadComboBox1.ClientID %>").enable(); |
} |
</script> |
When I click on the button - the combo is enabled and all its items are enabled as well.
Greetings,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Best Regards,
Jan Manzer
Jan Manzer
Paul Finn
Strandkorb
Best regards,
iane
http://flexeasy.net/
Please let us know how exactly to reproduce the problem and we will do our best to find a solution. Currently, we are unable to reproduce it.
Regards,
Veselin Vasilev
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.
Hey frndz..I m using RadCombo . Using javascript i m enabling and disabling the radcombo. But i have a problem when i enable the radcombo only combo will be enabled but items will be disabled. Can anybody please give me the solution for this problem. I want all the items of the radcombo is to be enabled when the radcombo is enabled .thnx.. u can post me here.. |
--------------------
http://www.bibleknowledgebookstore.com/christmas/greeting-cards.html
Best wishes,
Simon
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.