May 05, 2009, 10:30 AM
GridFilter
<P align=left>I created a <ext:GridPanel> with a <ext:GridFilter>, when I go the filter the date, show an error in javascript.
The format of date on <ext:GridPanel> is dd/mm/yyyy.
- record.get(this.dataIndex).clearTime is not a function
The format of date on <ext:GridPanel> is dd/mm/yyyy.
- record.get(this.dataIndex).clearTime is not a function
validateRecord: function(record) {
var val = record.get(this.dataIndex).clearTime(true).getTime();
if(this.dates.on.checked && val != this.getFieldValue('on').clearTime(true).getTime()) {
return false;
}
if(this.dates.before.checked && val >= this.getFieldValue('before').clearTime(true).getTime()) {
return false;
}
if(this.dates.after.checked && val <= this.getFieldValue('after').clearTime(true).getTime()) {
return false;
}
return true;
}
Thanks!