SmartClient version v9.1p_2014-03-16/Enterprise Deployment (2014-03-16)
Browsers: Chrome, FireFox
I have a ListGrid with the following settings:
When I update existing row in the grid the old Record Component for the cell is not removed and new one is added and painted on top of the old one.
When inspecting the ListGrid record inside Chrome console I notice that each time I edit the row, the existing record component is added to and array called _embededComponents_.... and the new one that is created is added as a single item to an array called _recordComponents_....
So with each edit, the first array keeps growing and the second always stays with size 1. When rendering the grid all the created components are stacked one over the other in the corresponding cell.
When the recordComponentPoolingMode is not set or set to "viewport", the record component is properly replaced with the new one on each row edit.
Browsers: Chrome, FireFox
I have a ListGrid with the following settings:
Code:
recordComponentPoolingMode: "data", showRecordComponentsByCell: true, createRecordComponent: function(record, colNum) { var fieldName = this.getFieldName(colNum); if (fieldName == "Chart") { var recordCanvas = isc.HLayout.create({ height: 30, width:100, align: "center" }); var chartImg = isc.FacetChart.create({....}); recordCanvas.addMember(chartImg); return recordCanvas; } else { return this.Super("createRecordComponent", arguments); } }
When inspecting the ListGrid record inside Chrome console I notice that each time I edit the row, the existing record component is added to and array called _embededComponents_.... and the new one that is created is added as a single item to an array called _recordComponents_....
So with each edit, the first array keeps growing and the second always stays with size 1. When rendering the grid all the created components are stacked one over the other in the corresponding cell.
When the recordComponentPoolingMode is not set or set to "viewport", the record component is properly replaced with the new one on each row edit.
Comment