EasyUI Forum
March 29, 2024, 06:00:42 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Editable Cell with multiline textarea in the cellediting extension?  (Read 5739 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« Reply #2 on: March 02, 2018, 09:26:28 AM »

Thank you, I missed the height. Thank you very much
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!