EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Shatki on September 19, 2017, 12:19:53 AM



Title: [SOLVED] combotreegrid editor gives 'idField' instead of 'treeField'
Post by: Shatki 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?


Title: Re: two small but important questions about datagrid
Post by: stworthy 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.


Title: Re: two small but important questions about datagrid
Post by: Shatki 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.


Title: Re: combotreegrid editor gives 'idField' instead of 'treeField' to datagrid
Post by: stworthy 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


Title: Re: combotreegrid editor gives 'idField' instead of 'treeField' to datagrid
Post by: Shatki on October 10, 2017, 01:19:41 PM
Thank you, that is perfect works
I didn't resolve it by myself