SmartClient Version: v9.0p_2013-08-20/EVAL Development Only
modify the #dateRangeFilterPresets sample like this:
then execute this code in the developer console (I need to dynamically modify the options):
this dynamic update of the filter is working (btw, there's a better way than hiding/showing the filter?).
but the problem is when you select the second option ('other') and then click 'filter'.
The grid is filtered correctly, but the first option ('aday') is selected.
Also note that the selection doesn't change with up/down arrows when focused.
This bug is also present in the original (unmodified) #dateRangeFilterPresets sample, grid1 and grid2.
modify the #dateRangeFilterPresets sample like this:
Code:
isc.DataSource.create({ ID: "presetDateRangeDS", clientOnly: true, fields: [ { name: "customerID" }, { name: "customerName" }, { name: "orderID" }, { name: "orderDate", type: "date" }, { name: "orderDescription" }, { name: "orderQty" } ], testData: presetDateRangeData }); isc.ListGrid.create({ ID: "grid1", top: 50, width: 590, height: 300, left: 10, dataSource: presetDateRangeDS, autoFetchData: true, useAllDataSourceFields: true, showFilterEditor: true, canGroupBy: true, fields: [ { name: "orderDate", filterEditorType: "RecentDateRangeItem" } ] });
Code:
isc.defineClass("RecentDateRangeItem", "PresetDateRangeItem").addProperties({ options: { "aday" : { fieldName: "orderDate", operator: "betweenInclusive", start: new Date(2013,8,11), end:new Date(2013,8,12) }, "other" : { fieldName: "orderDate", operator: "betweenInclusive", start: new Date(2013,8,13), end:new Date(2013,8,14) } } }); grid1.setShowFilterEditor(false) grid1.setShowFilterEditor(true)
but the problem is when you select the second option ('other') and then click 'filter'.
The grid is filtered correctly, but the first option ('aday') is selected.
Also note that the selection doesn't change with up/down arrows when focused.
This bug is also present in the original (unmodified) #dateRangeFilterPresets sample, grid1 and grid2.
Comment