Show Posts
|
Pages: [1]
|
1
|
General Category / Bug Report / After apply method updateRow, Target row will lose plus icon
|
on: October 15, 2012, 04:14:16 AM
|
if datagrid is detailview. After apply method updateRow,Target row will lose plus icon <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 }); ... ... $('#tt').datagrid('updateRow',{ index: 2, row: { name: 'new name', note: 'new note message' } });
Target row(index = 2) will lose plus icon, it will can't show detail
|
|
|
2
|
General Category / Bug Report / 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!
|
|
|
3
|
General Category / Bug Report / datagrid(detailview) can't display new row, when apply method appendRow.
|
on: October 15, 2012, 02:46:40 AM
|
BUG: datagrid(detailview) can't display new row, when apply method appendRow. <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>
var oDatas = [{id:1,text:'aaa'}] $('#tt).datagrid('loadData', { total: oDatas .length, rows: oDatas });
... Then $('#tt).datagrid('appendRow',{id:2,text:'aaa'}); ... It can't display , but it have append in datagrid, because... oDatas = $('#tt').datagrid('getRows'); oDatas length is 2
|
|
|
4
|
General Category / Bug Report / Combox bug
|
on: April 19, 2012, 03:56:19 AM
|
<select id="cc" class="easyui-combobox" name="state" style="width:200px;" required="true"> <option value="1">test1</option> <option value="2">test2</option> <option value="3">test3</option> </select> <script> $(document).ready(function () { $('#cc').combobox({ onSelect:function(n,o){....}, onChange:function(n,o){....} }); } </script>
1.if combobox is selected "test1" item, then input "1". don't have any event.
2.if combobox is selected "test1" item,use [getValue] will get "1". if input "1" ,use [getValue] will get "1". they are same!! I think, command must explicit. It is better, if have [getSelectedValue],[getSelectedText],[getText] command. When change select, [getSelectedValue] = itesm.value, [getSelectedText] = item.text, [getText] = null When input text, [getSelectedValue] = null, [getSelectedText] = null, [getText] = input text
|
|
|
|