Dojo Select widget validation style
Posted
by
jamstooks
on Stack Overflow
See other posts from Stack Overflow
or by jamstooks
Published on 2011-01-10T05:45:35Z
Indexed on
2011/01/10
5:53 UTC
Read the original article
Hit count: 197
Many dojo form widgets, like DateTextBox will style themselves in red (claro theme) with an "!" to indicate that the field isn't valid after focus. I can't seem to get this type of styling to work with the Select widget. I have the value set to required, but if the user leaves it in the default state, blank, then it remains unstyled.
I tried to test this programmatically:
wigs = dijit.findWidgets(node);
for( i = 0; i < wigs.length; i++ ) {
wigs[i].focus();
}
This triggers validation on several other widgets and they are styled appropriately, but not he Select widgets. Anyone know how to make it obvious that those select widgets are not validating?
Oh, and wigs[i].isValid() is definitely false for those select widgets.
© Stack Overflow or respective owner