Title: Datagrid will lose detailview when apply method refreshRow Post by: TayYeh on October 15, 2012, 03:03:42 AM if datagrid is detailview.
After apply method refreshRow,it will change to detailview. <script type="text/javascript" src="../../jquery-plugin/jquery-ui-1.8.23.custom/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="../../jquery-plugin/jquery-ui-1.8.23.custom/js/jquery-ui-1.8.23.custom.min.js"></script> <script type="text/javascript" src="../../jquery-plugin/jquery-easyui-1.3.1/jquery.easyui.min.js"></script> <script type="text/javascript" src="../../jquery-plugin/jquery-easyui-1.3.1/locale/easyui-lang-zh_TW.js"></script> <script type="text/javascript" src="../../js/datagrid-detailview.js"></script> $('#tt').datagrid({ title: 'Techer List', fitColumns: false, striped: true, nowrap: false, autoRowHeight: true, view: detailview, height: 'auto', ...}); ... ... $('#tt).datagrid('loadData', { total: datas.length, rows: datas }); ... ... var iCount = 0; var oRows = $('#tt').datagrid('getRows'); if (oRows != null) { iCount = oRows.length; for (var ii = 0; ii < iCount; ii++) { $('#tt').datagrid('refreshRow', ii); } } $('#tt')..datagrid('resize'); The view setting will change~ you will lose datail! Title: Re: Datagrid will lose detailview when apply method refreshRow Post by: stworthy on October 15, 2012, 06:07:11 AM Please download the updated detailview from http://www.jeasyui.com/extension/downloads/jquery-easyui-datagridview.zip.
|