Hi,
Here is slightly modified showcase sample http://www.smartclient.com/#inlineOperatorFilter :
Continent ListGridField has now set explicit ComboBoxItem as row filter editor.
Context menu of this field has got "Filter using" option which defaults to "startWith" (ComboBoxItem default).
The problem is that although you may change operator and it is correctly indicated:
It is completely ignored and filtering by "startWith" is made. Also showing context menu again proves that operator is not changed to "equals" - the one chosen last time.
All above can be verified in online showcase using "Try it".
Thanks,
MichalG
Here is slightly modified showcase sample http://www.smartclient.com/#inlineOperatorFilter :
Code:
isc.ListGrid.create({ ID: "countryList", width:500, height:300, alternateRecordStyles:true, dataSource: worldDS, fields:[ {name:"countryCode", width:50}, {name:"countryName"}, {name:"capital"}, {name:"continent", [B]filterEditorType:ComboBoxItem[/B]}, {name:"area"}, {name:"population"} ], autoFetchData: true, showFilterEditor: true, allowFilterOperators: true, initialCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ { fieldName: "countryName", operator: "iNotContains", value: "i" }, { fieldName: "capital", operator: "iNotStartsWith", value: "p" } ] } });
Context menu of this field has got "Filter using" option which defaults to "startWith" (ComboBoxItem default).
The problem is that although you may change operator and it is correctly indicated:
It is completely ignored and filtering by "startWith" is made. Also showing context menu again proves that operator is not changed to "equals" - the one chosen last time.
All above can be verified in online showcase using "Try it".
Thanks,
MichalG
Comment