PDA

View Full Version : pivot grid left axis



jasonm
2 Nov 2010, 10:41 AM
Hi,
I would like to display only 50 characters on left axis on the pivot grid. Is there a way to trim the header and display tooltip for the header?? Thanks!




leftAxis: [
{
width: 550,
dataIndex: 'requirement'
}]
]





Here's the method for trimming the name..


function trimName(v) {
var valueToDisplay = v;
if(v.length > 50){
valueToDisplay = valueToDisplay.substr(0, 47) + '...';
}
return '<span title="' + v + '">' + valueToDisplay + '</span>';
}
})

prophet
5 Jan 2011, 3:20 PM
I don't think custom renderers are available yet for the PivotGrid.