Skip to content

Instantly share code, notes, and snippets.

@fredyfx
Created July 16, 2016 04:53
Show Gist options
  • Save fredyfx/9e51f031f782519f3910b3e6417f5fc9 to your computer and use it in GitHub Desktop.
Save fredyfx/9e51f031f782519f3910b3e6417f5fc9 to your computer and use it in GitHub Desktop.
Ayuda para los desarrolladores que tenemos la "suerte" de toparnos con DevExpress en ASP.net MVC y que necesitamos jugar con las validaciones en el lado del cliente
HabilitarInputDevExpress(NombreDelElemento);
function DeshabilitarInputDevExpress(element) {
element.SetEnabled(false);
$(element.GetMainElement()).css('background-color', '#F2F2F2');
$(element.GetInputElement()).css('background-color', '#F2F2F2');
}
function HabilitarInputDevExpress(element) {
element.SetEnabled(true);
$(element.GetMainElement()).css('background-color', '#FFF');
$(element.GetInputElement()).css('background-color', '#FFF');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment