Hello Team,
i tried to center header text but it is not working.
i want header text in center and all the other data in right aligned.
please check my code below.
i create columns in loop.
for (i = 1; i <= 7; i++) {
ObjFund.colModel.push({
title: startYear + i,
dataType: 'float',
width: 90,
halign: "center",
align: "right",
dataIndx: 'Year_x0020_Amt' + i,
format: '$##,###',
summary: {
type: "all", //use custom aggregate.
edit: false
},
validations: [{
type: 'gte',
value: 0,
msg: "should be >= 0"
}],
render: function(ui) {
return {
style: 'text-align:right'
};
}
});
}
and also please find below attached screen shot.