EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: finzaiko on January 14, 2016, 11:22:24 PM



Title: Refresh expanded sub datagrid
Post by: finzaiko on January 14, 2016, 11:22:24 PM
How refresh expanded selected subdatagrid, I have been try like this :
Code:
_tblItemSelected = '#ddv-'+index; // I got the ID when parent datagrid clicked
$(_tblItemSelected).datagrid('reload');
Still not work, I have could find this forum, anyone know ?

Thanks in advance.


Title: Re: Refresh expanded sub datagrid
Post by: stworthy on January 15, 2016, 12:53:16 AM
Make sure that you can get the reference to the sub grid component. Is it the code below correct?

Code:
_tblItemSelected = '#ddv-'+index;
console.log(_tblItemSelected.datagrid('getRows'));