Hi, looks like there is some problem with applying a greaterThan filter criteria to a ListGrid when applying to a date field. I've observed this problem in both Smartclient 9.1 and Smartclient 10.0.
See this example:
http://www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html#filterBuilderBracketFS
Use this code. You will see the independence date filter is set to the current date and not 1901-05-12?
See this example:
http://www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html#filterBuilderBracketFS
Use this code. You will see the independence date filter is set to the current date and not 1901-05-12?
Code:
isc.FilterBuilder.create({ ID:"advancedFilter", dataSource:"worldDS", criteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ {fieldName: "independence", operator: "greaterThan", value: "1901-05-12"} ] } }); isc.ListGrid.create({ ID: "countryList", width:550, height:224, alternateRecordStyles:true, dataSource: worldDS, fields:[ {name:"countryName"}, {name:"continent"}, {name:"population"}, {name:"area"}, {name:"gdp"}, {name:"independence"} ]}) isc.IButton.create({ ID:"filterButton", title:"Filter", click : function () { countryList.filterData(advancedFilter.getCriteria()); } }) isc.VStack.create({ membersMargin:10, members:[ advancedFilter, filterButton, countryList ] }) // Perform the initial filter filterButton.click();
Comment