EasyUI Forum
October 18, 2025, 01:47:05 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help with "Build CRUD Application with edit form in expanded row details"  (Read 8618 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« 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
« Last Edit: September 08, 2015, 07:40:56 AM by rezzonico » Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 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);
Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #2 on: September 10, 2015, 08:38:00 AM »

Thanks for your help.

Regards
Miche
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!