Hy,
I had encounted the next problem when using FireFox 2:
When I try to filter a listGrid on a column that’s a date type I’m not reciveing the input from the filter to my backend.
Here is my code:
Date.setInputFormat("DMY");
Date.setShortDisplayFormat(userPrefDateFormatter);
function userPrefDateFormatter ()
{
var d=this.getDate();
var m=(this.getMonth() +1);
if(d<10) d='0'+d;
if(m<10) m='0'+m;
return d+'.'+ m + "." +this.getFullYear();
}
isc.RestDataSource.create({
ID:"dbDS",
fields:[
{showIf:"false",hidden:true, title:"Id#" , name:"id", primaryKey:true, canEdit:false},
{title:"season_name" , name:"season_name", required:true},
{title:"start_date" , name:"start_date", required:true, type:"date", useTextField:"true"},
{title:"end_date" , name:"end_date", required:true, type:"date", useTextField:"true"},
{ title:"sort_order" , name:"sort_order", canEdit:false, showIf:"false"},
{type:"date", title:"last_update" , name:"last_update", canEdit:false}
],
showPrompt:false,
fetchDataURL:"include/data/db.php?menu=17",
addDataURL :"include/data/db.php?menu=17",
updateDataURL:"include/data/db.php?menu=17",
removeDataURL:"include/data/db.php?menu=17"
});
isc.ListGrid.create({
ID: "dbList",
width:"100%",
height:"*",
autoDraw:false,
alternateRecordStyles:true,
emptyCellValue: "N/A",
dataSource: dbDS,
selectionType:"single",
dataPageSize: 50,
canEdit:true,
editEvent: "doubleClick",
modalEditing:true,
showFilterEditor: true,
dataProperties: { useClientFiltering:false},
useAllDataSourceFields:true,
autoFetchData:true
});
when I chose a date (for any date field ) in the filterEditor the Ajax req is:
http://localhost/miniCRM/include/data/db.php?menu=17&_operationType=fetch&_startRow=0&_endRow=50&_textMatchStyle=substring&_dataSource=dbDS
Now the strangest thing happens when I enable Track RPCSs from DevConsole: everthing starts working… the requests are done properly - I’m reciving the parameters in my backend.
in IE it’s working fine.
Thanks in advance for help,
John
Later Edit:
I was wrong with Track RPCSs in DevConsole –> It has nothing to do with the problem
It’s the same problem as here http://forums.smartclient.com/showthread.php?t=1950&highlight=date
It’s about focus because it’s working if I click on the field before filtering.