Hey guys,
found a bug when working with the groupStateChanged event.
I built a listGrid which includes a groupByField. Afterwards I put some data into the listgrid via listgrid.setData(). When doing so, the event groupStateChanged will fire. This event shouldnt fire when setting data, because the groupState cant be different afterwards.
Following a small example including the issue
This is reproducable with the latest nightly SmartClient_v100p_2015-02-20_Pro and happens in all current browsers (Firefox, Chrome and IE)
Best Regards
found a bug when working with the groupStateChanged event.
I built a listGrid which includes a groupByField. Afterwards I put some data into the listgrid via listgrid.setData(). When doing so, the event groupStateChanged will fire. This event shouldnt fire when setting data, because the groupState cant be different afterwards.
Following a small example including the issue
Code:
isc.ListGrid.create({
"ID" : "listGrid",
"groupStateChanged" : function () {
isc.say("groupStateChanged fired<br>Is the new groupState the same like initially?<br>" + (viewStateBefore == listGrid.getGroupState()))
},
"fields" :
[{
"name" : "name"
}
],
"groupByField" : "name"
});
var viewStateBefore = listGrid.getGroupState();
listGrid.setData([{
"name" : "One"
}, {
"name" : "Two"
}
])Best Regards