Sample: dhtmlxGrid | Multiline cells | dhtmlxGrid main page |
Sample demonstrates multiline cells in grid.
enableMultiline method makes all grid multiline. But you can set some rows/columns with fixed height (not as multiline) using custom code like in this sample. Cells in the third column is not multiline.
<style> .not_m_line{ white-space:nowrap; overflow:hidden; } </style> <script></script>... mygrid.enableMultiline(true) mygrid.init(); mygrid.loadXML("grid.xml",function(){ mygrid.forEachRow(function(id){ mygrid.cells(id,2).cell.className='not_m_line'; }) });
© DHTMLX LTD. All rights reserved |