Hi,
I have a big form with lot of FormItems. I set the style of some items to a different color. We want to achieve that as soon as something is typed in the textitem the style to be changed to other color, like this:
changed: function(form,item,value)
{
if(value.length>0 && this.textBoxStyle!="textItem")
{
this.textBoxStyle="textItem";
this.show();
}
else if(this.textBoxStyle!="textItemEmpty")
{
this.textBoxStyle="textItemEmpty";
this.show();
}
}
If I don’t add the FormItem.show() call than the style will not be reflected.
What happens now that if the user is typing fast he will see a noticeable delay at the first character that was typed in.
Is there any other method to redraw the FormItem that will not cause such a delay?