EasyUI Forum
September 14, 2025, 10:15:46 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 onClickCell //editor  (Read 21493 times)
WeberJ65
Newbie
*
Posts: 6


View Profile Email
« 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

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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){
    //...
  }
});
Logged
WeberJ65
Newbie
*
Posts: 6


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


View Profile Email
« Reply #3 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>
Logged
WeberJ65
Newbie
*
Posts: 6


View Profile Email
« Reply #4 on: March 20, 2012, 11:32:49 PM »

Hallo,

thanks for that great plugin!

Joachim
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!