Hi,
I've got a store which i bind to a grid. For the grid-columns i have a renderer listener each. So my thought is : When loading data, every column gets called by the renderer.
Example of a column:
Code:
{
text: "Test", dataIndex: "indexone", width: 60,
renderer: function(value){
if(value == "Bart Simpson"){
value = "Mr. Simpson";
}
return value;
}
}
For testing purposes i'm loading the Store by :
Code:
myGrid.getStore().loadData([["Bart Simpson", "12"],["Lisa Simpson", "9"], ["Marge Simpson", "40"]]);
The renderer gets called 3 times, as expected. All good untill i try it again, remove grid store first: myGrid.getStore().removeAll();
Then i call it with only one record
Code:
myGrid.getStore().loadData([["Bart Simpson", "12"]]);
Renderer gets called once, all good. Clear store again. Then i call it again with the early 3 records:
Code:
myGrid.getStore().loadData([["Bart Simpson", "12"],["Lisa Simpson", "9"], ["Marge Simpson", "40"]]);
Result: Renderer gets called..... once.....
Why is that?
I can even loadData with completely different records and even 1000 inside, renderer only gets called once, for the first record thats inside.
Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2mv3 (open dev console)
Greets