EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arawak on October 10, 2014, 02:43:43 AM



Title: managing a treegrid
Post by: arawak on October 10, 2014, 02:43:43 AM
hello,

I'm stuck in managing a treegrid:
1) I want to retrieve the relative value of a cell of a node and modified.

2) I wish all publishers resizer a row because they are smaller than the container.
   I have tried:
Code:
var editors = $ ('# tg') treegrid ('getEditors' rowIndex);
But as I dynamically creates publishers,
Code:
var col = $ (this) .treegrid ('getColumnOption', 's_raf'); 
col.editor = 'NumberBox;
I think they are still available ... so editors is null

Can you help me?


Title: Re: managing a treegrid
Post by: stworthy on October 10, 2014, 08:03:53 PM
The 'editor' name should be 'numberbox' not 'NumberBox'.
Code:
var col = $ (this).treegrid ('getColumnOption', 's_raf'); 
col.editor = 'numberbox;


Title: Re: managing a treegrid
Post by: arawak on October 13, 2014, 01:38:56 AM
Sorry, this is a mistake in the translation .   :o
The editor is type 'numberbox.


Title: Re: managing a treegrid
Post by: arawak on October 14, 2014, 12:16:14 AM
Help me, please ....