Hello,
I have to update from 8.0 to 8.1 because of the IE9 I think. Now I have a problem with the FilterEditor of my ListGrid.
I need the DateRangeItem but with SmartClient 8.1 I get only a simple Date-Selector, and the text field of the Date-Selector shows the wrong date format.
If I use testData+clientOnly I can filter the "date"-Columns with the nice DateRangeItem and everything is fine. But of course I need the data of the server.
Here is my code:
Is this a bug? Is this my fault? Is there a Workaround?
Thanks
I have to update from 8.0 to 8.1 because of the IE9 I think. Now I have a problem with the FilterEditor of my ListGrid.
I need the DateRangeItem but with SmartClient 8.1 I get only a simple Date-Selector, and the text field of the Date-Selector shows the wrong date format.
If I use testData+clientOnly I can filter the "date"-Columns with the nice DateRangeItem and everything is fine. But of course I need the data of the server.
Here is my code:
Code:
isc.RestDataSource.create({
ID: "grid2Ds",
// testData: [
// {uid: 1, crdate: 1, tstamp: 1 },
// {uid: 2, crdate: 2, tstamp: 2 }
// ],
// clientOnly: true,
fields: [
{name: "uid", type: "integer",canEdit: true, width: "*", primaryKey: true},
{name: "crdate", type: "date",canEdit: false, width: "*", detail: 1},
{name: "tstamp", type: "date",canEdit: false, width: "*"}
],
dataFormat: "json",
fetchDataURL: "http://localhost/testData.json"
});
isc.ListGrid.create({
ID: "grid2",
top: 330, width: 595, height: 100,
showAllRecords:true,
dataSource: "grid2Ds",
autoFetchData: true,
showFilterEditor: true,
fields: [
{name: "uid", detail: false, hidden: false},
{name: "crdate", detail: false, hidden: false},
{name: "tstamp", detail: false, hidden: false}
]
});
Thanks
Comment