Created
July 16, 2016 04:53
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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