Hi,


how can i do for measure a width of a string value with ExtJs?


I need compare the width a column with the width a data(string...).


Ex:


Code:
var getWidthString = function (grid, dataName)
{
var widthColumn = grid.columns[0].width;
var witdhName = dataName.width(someone component Ext to make this?)


if (widthColumn > witdhName )
{
return 1;
}
else
{
return 2;
}
}