EasyUI Forum
April 18, 2024, 05:48:33 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: [SOLVED] combotreegrid editor gives 'idField' instead of 'treeField'  (Read 5594 times)
Shatki
Newbie
*
Posts: 19


View Profile
« on: September 19, 2017, 12:19:53 AM »

In your example http://code.reloado.com/odiroq3/edit#javascript,html,live
If we change 'product name' then in field we see idField instead of textField of treefield
but then we will delete line  idField: 'id' all works as it is necessary.
Does it true work?
« Last Edit: October 10, 2017, 01:20:26 PM by Shatki » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 19, 2017, 02:10:08 AM »

The 'idField' property indicates what field value will be retrieved and updated to the editing row. You can set it to 'name' that equals to the 'treeField' property.
Logged
Shatki
Newbie
*
Posts: 19


View Profile
« Reply #2 on: October 09, 2017, 02:59:32 PM »

The 'idField' property indicates what field value will be retrieved and updated to the editing row. You can set it to 'name' that equals to the 'treeField' property.

Is There other way to achieve in your example http://code.reloado.com/odiroq3/edit#javascript,html,live that will show 'textField' or 'treeField' property instead of 'idField' after combotreegrid editing in datagrid?

in case {idField: 'name'} don't work dynamicaly loading nodes in combotreegrid, because json became like this {id: 'name'},  what isn't convenient.
« Last Edit: October 09, 2017, 03:12:01 PM by Shatki » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 10, 2017, 12:16:53 AM »

You can bind the editor on the 'productid' field instead of 'productname' field. Please look at this example http://code.reloado.com/odiroq3/2/edit#preview
Logged
Shatki
Newbie
*
Posts: 19


View Profile
« Reply #4 on: October 10, 2017, 01:19:41 PM »

Thank you, that is perfect works
I didn't resolve it by myself
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!