10 Feb 2011 9:23 AM #1
Validation error message runs off screen
I am using Ext 2.2.1 (essentially the core) and I'm trying to find a solution to having validation errors messages from running off the screen or outside the confines of the error tool tip from custom validators I have written. Based on the API, I have not seen a way to modify or style the displaying of errors other than just changing the error icon. If anyone can help point me to a solution, please let me know.
11 Feb 2011 9:43 AM #2
You say you are using Ext, but this is the GXT forum - you probably are not going to get the help you need here...
19 Feb 2011 2:25 PM #3
No, I am looking for GXT help. I have tried putting in carriage returns in the error messages, but it does not seem to work. I wondered if it was also possible to move the error icon, say the other side of the field.
19 Feb 2011 6:13 PM #4
The GXT api is distinct from Ext 2.2.1 (unless in your original post you meant Gxt), and even css selectors are different, though for the time being they are quite similar.
How are you setting up the error messages so far? Are you using icon/tooltip off to the right, or the tooltips that appear when you hover? Code that demonstrates the basic problem will go a long way toward getting help.
Newline chars will never help in HTML to get line breaks - try instead (though I am uncertain if this will work) to use a <br/> tag in your error message.
Best bet for changing style is to use Firebug to see what styles are applied, and override them in your own CSS.
By shane.miller in forum Ext 3.x: Help & DiscussionReplies: 8Last Post: 25 Sep 2009, 10:11 AM
By Chods in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 24 Jul 2009, 7:47 AM
By vinothini in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Jun 2009, 6:56 AM
By vinothini in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Jun 2009, 5:47 AM
By RyanZec in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 3 Jun 2008, 10:03 AM