I have a problem with disabled radcomboboxes.
First, on client side, you cannot select an item while the combo is disabled.
so you need to enable it, set the value, then disable it.
this should be fine but, after a disable() call, the combobox looses the ability of getting the value. this is because the disable function, which looks like (combo.disable.toString() in debugger) :
destroys the value, by setting it's text! on the green line
this.set_value(this.get_text());
this looks like is not correct.
of course, I can workaround this (by changing this function, or by keeping my id before disable then setting it back) but I think this code should be revised.
First, on client side, you cannot select an item while the combo is disabled.
so you need to enable it, set the value, then disable it.
this should be fine but, after a disable() call, the combobox looses the ability of getting the value. this is because the disable function, which looks like (combo.disable.toString() in debugger) :
somecombo.disable = function() { |
var _a0 = this.get_tableElement(); |
if (_a0 != null) { |
_a0.className = "rcbDisabled"; |
} |
this.set_enabled(false); |
this.set_value(this.get_text()); |
this.get_inputDomElement().disabled = "disabled"; |
this.disableEvents(); |
var _a1 = this._children.get_count(); |
for (var i = 0; i < _a1; i++) { |
this._children.getItem(i).disable(); |
} |
} |
destroys the value, by setting it's text! on the green line
this.set_value(this.get_text());
this looks like is not correct.
of course, I can workaround this (by changing this function, or by keeping my id before disable then setting it back) but I think this code should be revised.