1. Smartclient isc_version=v9.0p_2013-11-03 Power Edition
2. IE9
6. if((this.getFieldName(colNum) === "status") ){
var rowNum = processList.getRecordIndex(record);
return createStatusChangeButtons(record.status,rowNum);
}
function createStatusChangeButtons(status,rowNum){
var statusLayout = isc.HLayout.create({
ID:"statusBtnLayout_"+rowNum,
width:"110",
height:"25",
membersMargin: 5,
backgroundColor: "#ECE9D8",
members:[]
});
var btn1Button = isc.Button.create({name:"btn1"+rowNum});
var btn2Button = isc.Button.create({name:"btn2"+rowNum});
var btn3Button = isc.Button.create({name:"btn3"+rowNum});
var btn4Button = isc.Button.create({name:"btn4"+rowNum});
statusLayout.addMember(btn1Button);
statusLayout.addMember(btn2Button);
statusLayout.addMember(btn3Button);
statusLayout.addMember(btn4Button);
return statusLayout;
}
This code is what is taking 4 seconds when there are ~800 rows returned for the ListGrid, and when scrolling it causes scroll lag and jumpiness . Need help with ideas on how to add 4 buttons to a ListGridRecord cell for every Record.
2. IE9
6. if((this.getFieldName(colNum) === "status") ){
var rowNum = processList.getRecordIndex(record);
return createStatusChangeButtons(record.status,rowNum);
}
function createStatusChangeButtons(status,rowNum){
var statusLayout = isc.HLayout.create({
ID:"statusBtnLayout_"+rowNum,
width:"110",
height:"25",
membersMargin: 5,
backgroundColor: "#ECE9D8",
members:[]
});
var btn1Button = isc.Button.create({name:"btn1"+rowNum});
var btn2Button = isc.Button.create({name:"btn2"+rowNum});
var btn3Button = isc.Button.create({name:"btn3"+rowNum});
var btn4Button = isc.Button.create({name:"btn4"+rowNum});
statusLayout.addMember(btn1Button);
statusLayout.addMember(btn2Button);
statusLayout.addMember(btn3Button);
statusLayout.addMember(btn4Button);
return statusLayout;
}
This code is what is taking 4 seconds when there are ~800 rows returned for the ListGrid, and when scrolling it causes scroll lag and jumpiness . Need help with ideas on how to add 4 buttons to a ListGridRecord cell for every Record.
Comment