EasyUI Forum

General Category => General Discussion => Topic started by: Alfred on February 28, 2018, 08:37:18 AM



Title: Editable Cell with multiline textarea in the cellediting extension?
Post by: Alfred on February 28, 2018, 08:37:18 AM
Is it possible to have multiline textbox in the datagrid when cell editing is enabled?

     
Code:
$('#updatedg').datagrid({
            clickToEdit: false,
            dblclickToEdit: true,
        }).datagrid('enableCellEditing').datagrid('gotoCell', {
            type:'textbox',
            multiline:true,
            index: 0,
            field: 'remark',           
        });
   
This code does not give me the multiline textbox when doubleclicking the cell.


Title: Re: Editable Cell with multiline textarea in the cellediting extension?
Post by: stworthy on March 01, 2018, 12:13:53 AM
The multiline textbox should be defined in the column.
Code:
<th data-options="field:'attr1',width:250,editor:{type:'textbox',options:{height:100,multiline:true}}">Attribute</th>


Title: Re: Editable Cell with multiline textarea in the cellediting extension?
Post by: Alfred on March 02, 2018, 09:26:28 AM
Thank you, I missed the height. Thank you very much