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

dataChanged not called on grid.setData

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

Chrome on OSX

Usually I use to observe the dataChanged method to display totalRows for grids.
But it seems that it isn't called when I do setData([]).
Is it correct behavior? I think that in the past this was working.
You could try this test case:
Code:

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

isc.IButton.create({
  title:'set data',
  click:function() {
    countryList.setData([])
  }
})


Viewing all articles
Browse latest Browse all 4756

Trending Articles