I am using SC version 8.3
In Smartclient Listgrid we have a requirement to fix the row height. If we have a huge data in any column then it should get truncated.
To achieve the above requirement SC provides following property :
fixedRecordHeights: true,
cellHeight:70
But the effect of above properties get nullified if we use property showRecordComponents: true
I have to use showRecordComponents: true because further I am using
createRecordComponent:function (record, colNum) {
var grid = this;
var fieldName = this.getFieldName(colNum);
if (fieldName == 'optionBtn') {
return isc.HLayout.create({
members:[
isc.LinkButton.create({
width:70,
icon:Res.icon.view,
iconAlign:"center",
title:"View",
align:"center",
click:function () {
//something
}
}),
isc.LinkButton.create({
width:70,
icon:Res.icon.edit,
iconAlign:"center",
title:"Edit",
align:"center",
click:function () {
//something
}
}),
isc.LinkButton.create({
width:70,
icon:Res.icon.del,
iconAlign:"center",
title:"Delete",
align:"center",
click:function () {
//something
}
}),
],
height: 16,
margin:0,
layoutMargin:0,
align: "center",
membersMargin: 6
});
}
else
return null;
}
What can I do to restrict the row height ?
In Smartclient Listgrid we have a requirement to fix the row height. If we have a huge data in any column then it should get truncated.
To achieve the above requirement SC provides following property :
fixedRecordHeights: true,
cellHeight:70
But the effect of above properties get nullified if we use property showRecordComponents: true
I have to use showRecordComponents: true because further I am using
createRecordComponent:function (record, colNum) {
var grid = this;
var fieldName = this.getFieldName(colNum);
if (fieldName == 'optionBtn') {
return isc.HLayout.create({
members:[
isc.LinkButton.create({
width:70,
icon:Res.icon.view,
iconAlign:"center",
title:"View",
align:"center",
click:function () {
//something
}
}),
isc.LinkButton.create({
width:70,
icon:Res.icon.edit,
iconAlign:"center",
title:"Edit",
align:"center",
click:function () {
//something
}
}),
isc.LinkButton.create({
width:70,
icon:Res.icon.del,
iconAlign:"center",
title:"Delete",
align:"center",
click:function () {
//something
}
}),
],
height: 16,
margin:0,
layoutMargin:0,
align: "center",
membersMargin: 6
});
}
else
return null;
}
What can I do to restrict the row height ?
Comment