Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

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

    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)')

    #2
    This was fixed a while ago in 10.1 - we'll backport the fix today

    Comment


      #3
      We spoke too soon in our last reply - the fix we said needed porting was a different issue, and is also already ported to 10.0.

      What you're seeing is by design. The ListGrid *does* provide filtering of the static array, but it does so by applying that array as the allRows of a ResultSet.

      We'll clarify this in the docs.

      Comment

      Working...
      X