tags:

views:

169

answers:

2

I want to show the data in the tooltip when a columns has long sentences because of width constrints.

for this i am using a renderer function as follows

{

header: xppo.st('SDE_INCIDENT_DESCRIPTION1'), width: 175, sortable: true, groupable: false, dataIndex: 'IncidentDescription',

renderer: function(value, metaData, record, rowIndex, columnIndex, ds)

 {             

                return '<div ext:qtip="' + value + '">' + value + '</div>';

  }
},

but when the data has no break space and when the word is really long the text will extend beyond the text area.

how do i show the entire data within the div specified withot overflowing from it.

A: 
30equals
return '<div class="class1" ext:qtip="' + value + '">' + value + '</div>';where class1{word-wrap: break-word; white-space: normal;}this will break the word in the grid column but not for the tooltip but i want to break the word for the tooltip and not for the column
xrx215
A: 

Ext.apply(Ext.QuickTips.getQuickTip(), { maxWidth: 700, minWidth: 100, showDelay: 50, trackMouse: true });

xrx215