-
30 Oct 2008 9:57 AM #1
keep showing side message on error
keep showing side message on error
Hi - please tell me how to show the side validation error message when the field is invalid, instead of showing the error message on mouse over.
I know its a fundamental doubt in using the invalid message format.
I have a requirement in that server side validation will happen on change of a field until the validation completes I need to show the message on side.
-
30 Oct 2008 10:19 AM #2
msgTarget
-
30 Oct 2008 11:30 AM #3
not the msgTarget
not the msgTarget
Hi - Thanks for the reply..but what im looking for is
msgTarget
ide and the error message should keep displaying.
msgTarget
ide will display error message only on hover but how to show the message in case of invalid.
I know we have option to show under or using custom div element. I would like to accompolish in the side.
-
30 Oct 2008 2:20 PM #4
how to display the message
how to display the message
Please anyone throw your idea in displaying the invalid message without mouse over..
-
30 Oct 2008 2:35 PM #5
Well the message popup is an Ext tooltip, so maybe theres a way to configure the one that gets generated.
-
31 Oct 2008 4:01 AM #6
hi dev..can u pass a sample
hi dev..can u pass a sample
Hi Dev...Thanks for your reply.
Can you pass a sample to configure the error icon tooltip ...
Or at least let me know how to fire the event of erroricon on mouse over....
-
14 Mar 2011 12:15 AM #7
You can define a msgTarget type, let's say msgTarget : "sideText" (based on "under" & "side")
Just as a quick demo, you may try to insert the following codes in ext-all.js:
- After the segment "alignErrorEl: function() {...},"
Code:alignErrorSideEl : function() { this.errorSideEl.setWidth(this.getErrorCt().getWidth(true) - 20) this.errorSideEl.alignTo(this.el, "tl-tr", [20, 0]) },- After the segment "side : {...},"
Code:sideText : { mark : function(b, c) { b.el.addClass(b.invalidClass); if (!b.errorSideEl) { var a = b.getErrorCt(); if (!a) { b.el.dom.title = c; return } b.errorSideEl = a.createChild({ cls : "x-form-invalid-msg" }); if (b.ownerCt) { b.ownerCt.on("afterlayout", b.alignErrorSideEl, b); b.ownerCt.on("expand", b.alignErrorSideEl, b) } b.on("resize", b.alignErrorSideEl, b); b.on("destroy", function() { Ext.destroy(this.errorSideEl) }, b) } b.alignErrorSideEl(); b.errorSideEl.update(c); Ext.form.Field.msgFx[b.msgFx].show(b.errorSideEl, b) }, clear : function(a) { a.el.removeClass(a.invalidClass); if (a.errorSideEl) { Ext.form.Field.msgFx[a.msgFx].hide(a.errorSideEl, a) } else { a.el.dom.title = "" } } },


Reply With Quote