|
Title: treegrid getEditor return null Post by: iskandarkbr 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? Title: Re: treegrid getEditor return null Post by: stworthy on February 09, 2016, 06:26:14 PM You can not call 'enableCellEditing' method on a treegrid. It only works for the datagrid component.
|