EasyUI Forum
September 19, 2025, 09:19:52 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: treegrid getEditor return null  (Read 6911 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« on: February 08, 2016, 08:50:32 PM »

here are my code :

      
.................................................
<thead>
         <tr>
            <th data-options="field:'name',width:180,editor:'text'">Task Name</th>
            <th data-options="field:'persons',width:60,align:'right'">Persons</th>
            <th data-options="field:'begin',width:80">Begin Date</th>
            <th data-options="field:'end',width:80">End Date</th>
         </tr>
      </thead>
   </table>
   <script type="text/javascript">
      $(function(){
         $('#tg').treegrid({
            onClickCell: function(field,row){
               console.log(row.id);
               console.log(field);
               var rowId=row.id;
               var nmField=field;
               var editor=$(this).treegrid('getEditor',{id:3,field:'name'});
               console.log(editor);
            }
         });
      })
   </script>


My aim is : i want make cellediting when a cell clicked, but it (getEditor) returns null. can you help me?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 09, 2016, 06:26:14 PM »

You can not call 'enableCellEditing' method on a treegrid. It only works for the datagrid component.
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!