EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 19, 2025, 05:17:44 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
treegrid getEditor return null
Pages: [
1
]
« previous
next »
Print
Author
Topic: treegrid getEditor return null (Read 6896 times)
iskandarkbr
Newbie
Posts: 36
treegrid getEditor return null
«
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
Re: treegrid getEditor return null
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...