cell height

Hi,

i use dhtmlxWindows and i need to insert a textarea in window. Instead of “attachURL”, i’d like to use a dhtmlxgrid with one row and one cell.(so i can use easy dhtmlxdataproccessor to save the value).

It works great. The only problem is the height of cell.

I use the following codes:



var grid = w1.attachGrid();

grid.setImagePath("/images/imgs/");

grid.setHeader(“Model”);

grid.setNoHeader(true);

grid.setInitWidths("*");

grid.setColTypes(“ed”);

grid.init();

grid.loadXML("/xml_feed.jsp?action=get_addNotes&rowId="+rowId+"&cellInd="+cellInd);

grid.enableMultiline(true);



1. Can i adjust the cell height manual, at best as tall as dhtmlxwindow?

2. How can i set word wrap?

3. Can i solve the problem with scrollbar in FireFox by longtext?(Firefox creates a scrollbar instead of wordwrap).



Thanks in advance!

pyt

  1. If you known expected height, you can use
    grid.setRowTextStyle(id,“height:100px;”);
    2) place grid.enableMultiline(true) before grid.init()
    3) In multiline mode browser will break long text by whitespaces automatically. Beware that FF will not break long text without whitespaces ( this is native behavior of browser and can’t be changed )