Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad Welekar on Mar 28, 2008 13:04
open dhtmlx forum
WordWrap

Hello support,

Is it possible to word wrap the cell data?
Answer posted by Support on Mar 28, 2008 15:50
Grid can work in two modes
- single line mode
- multi line mode

In case of multiline mode text will be automatically wrapped and height of row adjusted accordingly
    grid.enableMultiline(true)
Answer posted by Prasad Welekar on Mar 28, 2008 16:16
Thanks.
I have multiline true for grid.
 I am calling adjustColumnSize function on cell edit stage 2 event.
So column size will be adjusted as per cell data. Now I also modified adjustColumnSize function in way that max width of column to be 200.
In dhtmlxGrid.js file

if(m>200){

   m=200;
}

My requirement is to word wrap cell data so that all data will be visible means  It will increases the row count, when the data goes beyond the 200px limit.
Like
data_data_data_data_
data_data_data_data_  
data_data_data_data_

instead of
  (visible area)                         (invisible area)
data_data_data_data_data_| data_data_data_data_data_data_data_
                                          |