Hi Isomorphic,
please see this modified sample (v12.0p_2018-12-19), where repeated clicks on fetchData() and filterData() that do not result in server contact, do result in an unnecessary "Grouping data" window nevertheless.
This is similar to this issue, where the same happened for display of the filter row.
This is minor to me, I found it trying to create another testcase.
Best regards
Blama
please see this modified sample (v12.0p_2018-12-19), where repeated clicks on fetchData() and filterData() that do not result in server contact, do result in an unnecessary "Grouping data" window nevertheless.
This is similar to this issue, where the same happened for display of the filter row.
Code:
isc.ListGrid.create({ ID:"dsListGrid", width: "100%", height: "100%", autoFetchData: false, canEdit: true, groupByField: "category", initialSort: [ {property: "category", direction: "ascending"}, {property: "units", direction: "ascending"} ], dataSource: "supplyItem", showFilterEditor: true, implicitCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ { fieldName: "units", operator: "isNull" } ] } }); isc.IButton.create({ ID:"fetchButton", width: 200, title:"Fetch no criteria", click : function () { dsListGrid.fetchData(); } }); isc.IButton.create({ ID:"fetchFilteredButton", width: 200, title:"filterData category", click : function () { dsListGrid.filterData({ _constructor: "AdvancedCriteria", operator: "and", criteria: [ { fieldName: "category", operator: "equals", value: "Office Paper Products" } ] }, null, { textMatchStyle: "exact" }); } }); isc.IButton.create({ ID:"showImplicitCriteria", width: 200, title:"Show ImplicitCriteria", click : function () { isc.say(isc.JSON.encode(dsListGrid.getImplicitCriteria())) } }); isc.HStack.create({ ID:"hStack", membersMargin:10, members:[ fetchButton, fetchFilteredButton, showImplicitCriteria] }); isc.VLayout.create({ membersMargin:10, width: "100%", height: "100%", members:[ dsListGrid, hStack] });
Best regards
Blama
Comment