Thursday, May 29, 2014

Why you should care about a DevExpress ASPxCheckBox's enabled state.

Foo.Enabled = false;

...is not the same as...

Foo.ClientEnabled = false;

 
 

The former is going to hide the whole of the checkbox from the UI. There will be no way to call the checkbox by its id from JavaScript and such attempts will throw an error up to the console. Nonetheless the "disabled" checkbox will appear to be a checkbox which is disabled in the traditional sense. The later actually disables a checkbox in the traditional sense. The checkbox may be grabbed ahold of by JavaScript and even reenabled by JavaScript.

No comments:

Post a Comment