EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on September 08, 2015, 07:33:24 AM



Title: Help with "Build CRUD Application with edit form in expanded row details"
Post by: rezzonico on September 08, 2015, 07:33:24 AM
Hi all,

I need some help with the example "Build CRUD Application with edit form in expanded row details":
http://www.jeasyui.com/tutorial/app/crud3/index.html

In "show_form.php" there is a "form":
<form method="post">
...
</form>

... and in index.html there is the following line to load the data to the form:
$('#dg').datagrid('getRowDetail',index).find('form').form('load',row);

My problem ...
I am writing a similar program. The only difference is that instead of a form I have a datagrid.
I need help to find the correct command to load the rows to the datagrid:
$('#dg').datagrid('getRowDetail',index).find('XXXXXX').datagrid('loadData',rows);

Any help is appreciated.
Regards
Miche


Title: Re: Help with "Build CRUD Application with edit form in expanded row details"
Post by: jarry on September 08, 2015, 07:51:54 AM
Please refer to http://www.jeasyui.com/tutorial/datagrid/datagrid22.php

To get the detail datagrid object, please try this:
Code:
$('#dg').datagrid('getRowDetail',index).find('table.ddv').datagrid('loadData',rows);


Title: Re: Help with "Build CRUD Application with edit form in expanded row details"
Post by: rezzonico on September 10, 2015, 08:38:00 AM
Thanks for your help.

Regards
Miche