EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: WeberJ65 on March 19, 2012, 01:00:46 AM



Title: treegrid onClickCell //editor
Post by: WeberJ65 on March 19, 2012, 01:00:46 AM
Hallo together,

i use treegrid and need to react when a user click on a Cell. The documentaion describe only the onClickRow Event which returns the row Object. I tested the onClickCell-Event but it do not fire.

A second Problem is to define an editor for a cell or a cellgroup. Basicly the documentaion assume that each cell in a column has the same editor definition. For better understanding look the screenshot. The red frame shows a Cellgroup which needs to be editable.

Has someone practical ideas how to solve this problems.

Many thanks
Joachim



Title: Re: treegrid onClickCell //editor
Post by: stworthy on March 19, 2012, 07:13:35 PM
The 'onClickCell' and 'onDblClickCell' callback function options will be added into next version, you can download the preview plugin from http://www.jeasyui.com/easyui/plugins/jquery.treegrid.js

Code sample:
Code:
$('#tt').treegrid({
  onClickCell:function(field,row){
    //...
  }
});


Title: Re: treegrid onClickCell //editor
Post by: WeberJ65 on March 20, 2012, 02:44:57 AM
Hallo,

thanks for your answer. For testing this preview code, must i copy and paste it into the current jquery.easyui.1.2.5.min.js?

with best thanks
Joachim


Title: Re: treegrid onClickCell //editor
Post by: stworthy on March 20, 2012, 06:37:03 PM
Code example:
Code:
	<script type="text/javascript" src="../jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../jquery.treegrid.js"></script>


Title: Re: treegrid onClickCell //editor
Post by: WeberJ65 on March 20, 2012, 11:32:49 PM
Hallo,

thanks for that great plugin!

Joachim