Personal tools
| Home | sandbox | dhtmlxGrid | samples | rows_columns_manipulations | grid_multiline_col
Document Actions

grid_multiline_col

Sample: dhtmlxGrid Multiline cells dhtmlxGrid main page
X

Sample demonstrates multiline cells in grid.
> enableMultiline method makes all grid multiline. But you can set some rowscolumns 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>
 
    ...
    mygrid.enableMultiline(true)
    mygrid.init();
    mygrid.loadXML("grid.xml",function(){
        mygrid.forEachRow(function(id){
            mygrid.cells(id,2).cell.className='not_m_line';
        })
    });
</script>

Powered by Plone CMS, the Open Source Content Management System