marimuthup
27 Jul 2007, 12:55 PM
Hi,
Could Some one help me to show the error messages thru the tool tip.
If I type incorrect date it shows the red mark on the display field but not the error on qtip
I am setting the property msgTarget : 'qtip'
Following is the code snippet I am using.
var startDate = new Ext.form.DateField({
format:'m/d/Y',
msgTarget : 'qtip',
emptyText : "MM/DD/YYYY",
maxValue : new Date()
});
startDate.setValue(new Date());
startDate.applyTo('startDate');
g_start_date = startDate.value;
startDate.on('change', startDateChanged);
function startDateChanged(record,index){
g_start_date = startDate.value;
}
Thanks in advance.
With regards
P.Marimuthu
Could Some one help me to show the error messages thru the tool tip.
If I type incorrect date it shows the red mark on the display field but not the error on qtip
I am setting the property msgTarget : 'qtip'
Following is the code snippet I am using.
var startDate = new Ext.form.DateField({
format:'m/d/Y',
msgTarget : 'qtip',
emptyText : "MM/DD/YYYY",
maxValue : new Date()
});
startDate.setValue(new Date());
startDate.applyTo('startDate');
g_start_date = startDate.value;
startDate.on('change', startDateChanged);
function startDateChanged(record,index){
g_start_date = startDate.value;
}
Thanks in advance.
With regards
P.Marimuthu