EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 03, 2024, 03:25:29 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
Datagrid will lose detailview when apply method refreshRow
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid will lose detailview when apply method refreshRow (Read 13835 times)
TayYeh
Newbie
Posts: 4
Datagrid will lose detailview when apply method refreshRow
«
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!
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Datagrid will lose detailview when apply method refreshRow
«
Reply #1 on:
October 15, 2012, 06:07:11 AM »
Please download the updated detailview from
http://www.jeasyui.com/extension/downloads/jquery-easyui-datagridview.zip
.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...