var ddCtl = $find("MyDropdownControl");if (ddCtl){ var items = ddCtl.get_items(); for (var x = 0; x < items.getLength(); x++) { var item = items.getItem(x); item.set_disabled(false); }}
No matter what I put in for a value in set_disabled() true or false, the disabled css class is used to format that item (DropDownItem Class Members )
Also, as a DropDownProvider for a WebDataGrid, 2 issues:
Thank you!
U Rock!Works as expected!
Thanks Angel!
Hi,
Thanks very much for your input. This indeed appears to be a bug - in that the CSS class is not updated, but the actual transaction is recorded correctly with the corresponding value of true / false.
Until the fix is released in the following hotfix (in May) , I suggest using the following workaround:
item.set_disabled(false);
$util.removeCompoundClass(item._element, item.get_disabledCssClass());
Hope this helps,
Angel
Update: I just ran the update/dlownload for FireFox to 3.09, and the dropdown does dropdownThe set_disabled() behaves the same in both IE8 and FF 3.09