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

Performance Issue for listGrid with many columns

$
0
0
Hi,

We have a performance issue from our client for ListGrid with many columns when "fixedRecordHeights" is false: the mouse over and mouse click actions on records are very slow. If "fixedRecordHeights" is true, these actions perform well.

This can be reproduced on SmartClient_v83p_2014-10-18_PowerEdition on any browser.

Please try the following standalone.

Thanks!

Code:

var num = 131,       
        ds = new Array(),       
        name = "name";
       
for (var i=0 ; i< num; i++) {
        var dsObj = {};
        dsObj[name] = 'pk'+i;
        dsObj['type'] = 'text';
        dsObj['title'] = 'PK'+i;
        ds[i] = dsObj;
}

var rawData = new Array();

for (var i =0; i<num; i++) {
        var dataObj ={};
        for (var j=0; j<num; j++) {       
                var key = 'pk'+ j;
                dataObj[key] = 'Raw Data '+j;
        }
        rawData[i] = dataObj;
}


var fieldData = new Array();

for (var i=0; i<num; i++) {
        var fieldObj = {};
        fieldObj['name'] = 'pk'+i;
        fieldObj['width'] = 100;
        fieldData[i] = fieldObj;
}
               
isc.DataSource.create({
    ID:"orderItemLocal2",
    clientOnly:true,
    testData:rawData,
    fields:ds
});
               
isc.ListGrid.create({
    ID: "companyList",
        top: 50,
        left:100,
    width:800, height: 500,
    autoFetchData:true,
    dataSource:orderItemLocal2,
    fields:fieldData,
        fixedRecordHeights:false,
        headerHeight:45
});


Viewing all articles
Browse latest Browse all 4756

Trending Articles