Skip to content

Instantly share code, notes, and snippets.

View fredyfx's full-sized avatar
💭
With all the power 2.0!

Fredy R. Guibert フレディ fredyfx

💭
With all the power 2.0!
View GitHub Profile
@fredyfx
fredyfx / ejemplo.js
Created July 16, 2016 04:53
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);