sbodanapu
24 Apr 2012, 4:23 AM
Hi Experts,
i am fetching results from the database when i click enter key in the filter ( datefield ) in the gridpanel in the format ('d-M-y')
when i press enter key it is fetching all the results correctly. Even in the json response i can see all the results in the prescribed format...but it is showing error like
Error : s.replace is not a function
according to my understanding, in the below function
escapeRe : function(s) { return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1");
}
s value is taken as Date {Mon Apr 23 2012 00:00:00 GMT+0530 (India Standard Time)} even when i had specified the date format for the column model as 'd-M-y'
Please help me.....i am unable to resolve this from the past two days...(:|(:|(:|
Thanks in Advance,
Sandeep
i am fetching results from the database when i click enter key in the filter ( datefield ) in the gridpanel in the format ('d-M-y')
when i press enter key it is fetching all the results correctly. Even in the json response i can see all the results in the prescribed format...but it is showing error like
Error : s.replace is not a function
according to my understanding, in the below function
escapeRe : function(s) { return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1");
}
s value is taken as Date {Mon Apr 23 2012 00:00:00 GMT+0530 (India Standard Time)} even when i had specified the date format for the column model as 'd-M-y'
Please help me.....i am unable to resolve this from the past two days...(:|(:|(:|
Thanks in Advance,
Sandeep