I am not 100% sure if this is a bug or if it is our setup - we are using displayField for when we send over integer values that are formatted on the server to be comma separated. But as soon as we introduced this, our filtering stopped working.
Run the testcase and type 55.33 in the filter field for dec_TF then press the filter button. The data is not filtered.
Run the testcase and type 55.33 in the filter field for dec_TF then press the filter button. The data is not filtered.
Code:
var myData = [ {cwPK__:0, dec_RBH: 22, dec_TF: 55.33, $cwdec_TF: 55.33,str_TF: "ZZZZZZZ"}, {cwPK__:1, dec_RBH: 33, dec_TF: 15.66, $cwdec_TF: 15.66,str_TF: "asdasdasd"}, {cwPK__:2, dec_RBH: 33, dec_TF: 14.77, $cwdec_TF: 14.77,str_TF: "asdasdZ"}, {cwPK__:3, dec_RBH: 33, dec_TF: 55.33, $cwdec_TF: 55.33,str_TF: "hergeZZZ"}, {cwPK__:4, dec_RBH: 22, dec_TF: 55.33, $cwdec_TF: 55.33,str_TF: "sdfssZZ"}, {cwPK__:5, dec_RBH: 99, dec_TF: 14.77, $cwdec_TF: 14.77,str_TF: "sdfsdf"}, {cwPK__:6, dec_RBH: 22, dec_TF: 15.66, $cwdec_TF: 15.66,str_TF: "asdasd1231ZZ"}, {cwPK__:7, dec_RBH: 22, dec_TF: 14.77, $cwdec_TF: 14.77,str_TF: "asdasd"}, {cwPK__:8, dec_RBH: 99, dec_TF: 55.33, $cwdec_TF: 55.33,str_TF: "asdasd"}, {cwPK__:9, dec_RBH: 22, dec_TF: 14.77, $cwdec_TF: 14.77,str_TF: "dwqeZ"} ]; isc.DataSource.create({ ID:"orderItemLocal2", clientOnly: true, testData: myData, fields:[{name:"cwPK__",primaryKey:true, hidden:true},{name:"dec_RBH"},{name:"dec_TF"},{name:"str_TF"}], showPrompt:false,criteriaPolicy:"dropOnChange",compareCriteria:function() { return 1; }}); isc.VStack.create({ ID:"table_AA", name:"table", height:"100%", width:"100%", members:[ isc.ListGrid.create({ fastCellUpdates:false, groupStartOpen:"first", dataSource:orderItemLocal2, validateOnChange:true, dataProperties:{ useClientFiltering:false, neverDropUpdatedRows:true }, ID:"GridFilterResultTable1", showFilterEditor:true, modalEditing:true, canSelectText:true, selectOnEdit:true, willHandleErrors:true, autoFetchData:true, canSort:true, headerButtonProperties:{wrap:true}, emptyMessage:"No items found.", fields:[{title:"<nobr>Decimal - Radio Button - Horizontal <\/nobr>", valueMap:{"22":"22","33":"33","99":"99"}, filterEditorType:"text",filterEditorValueMap:{}, filterEditorProperties:{required:false,validateOnChange:false}, name:"dec_RBH",align:"left",validateOnChange:true,width:"100" }, {title:"<nobr>Decimal - Text Field <\/nobr>", type:"decimal",displayField:"$cwdec_TF", sortByDisplayField:false, neverValidate:true, validateOnChange:false, filterEditorProperties:{_constructor:"TextItem", name:"dec_TF",align:"left",width:"100"} }, {title:"<nobr>String - Text Field <\/nobr>",editorType:"text", neverValidate:true, validateOnChange:false, filterEditorProperties:{_constructor:"TextItem",required:false,validateOnChange:false,type:"text",changed:function() { return true; }}, name:"str_TF", align:"left", width:"100" }], canEdit:false}) ]});
Comment