Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

filterLocalData: grid.data starts as an Array and becomes a ResultSet after filtering

$
0
0
SmartClient Version: v10.0p_2015-07-13/Enterprise Development Only (built 2015-07-13)

Chrome on OSX

Hello, I've got a grid (filterLocalData:true) initialized with setData, and after filtering grid.data becomes a ResultSet.

Reading the docs about filterLocalData, it seems that it should filter the static array, so I don't expect it to become a ResultSet.

You could try this testcase:

Code:

isc.ListGrid.create({
 ID: "countryList",
 width:500, height:300, alternateRecordStyles:true,
 dataSource: worldDS,
filterLocalData:true,
 fields:[
 {name:"countryCode", title:"Code", width:50},
 {name:"countryName", title:"Country"},
 {name:"capital", title:"Capital"},
 {name:"continent", title:"Continent"}
 ],
 showFilterEditor: true
})

worldDS.fetchData(null,'countryList.setData(data)')


Viewing all articles
Browse latest Browse all 4756

Trending Articles