Show Posts
|
Pages: [1] 2 3
|
3
|
General Category / EasyUI for Vue / filterable
|
on: March 24, 2019, 07:17:28 AM
|
Hi! You have filtering example for vue.js <DataGrid ref="dg" :data="data" :filterable="true" style="min-width:700px;height:250px"> If i set filterable as variable, and edit this variable, reactivity does not work
|
|
|
10
|
General Category / Bug Report / Re: datagrid cellediting and datagrid subgrid conflict
|
on: November 19, 2015, 09:08:17 AM
|
Hm, it seems to work. But, if I collapse parent row, and expand, my browser is freeze 19:01:17.973 Error: Script terminated by timeout at: U@http://code.jquery.com/jquery-1.4.4.min.js:16:278 c.event.handle@http://code.jquery.com/jquery-1.4.4.min.js:63:422 c.event.add/o@http://code.jquery.com/jquery-1.4.4.min.js:56:474 c.event.trigger@http://code.jquery.com/jquery-1.4.4.min.js:61:153 .trigger/<@http://code.jquery.com/jquery-1.4.4.min.js:74:288 c</<.each@http://code.jquery.com/jquery-1.4.4.min.js:33:44 c</b.prototype.each@http://code.jquery.com/jquery-1.4.4.min.js:26:386 .trigger@http://code.jquery.com/jquery-1.4.4.min.js:74:267 c.fn@http://code.jquery.com/jquery-1.4.4.min.js:77:311 editCell@http://www.jeasyui.com/easyui/datagrid-cellediting.js:202:6 .editCell/<@http://www.jeasyui.com/easyui/datagrid-cellediting.js:296:5 c</<.each@http://code.jquery.com/jquery-1.4.4.min.js:33:44 c</b.prototype.each@http://code.jquery.com/jquery-1.4.4.min.js:26:386 .editCell@http://www.jeasyui.com/easyui/datagrid-cellediting.js:295:1 $.fn.datagrid@http://www.jeasyui.com/easyui/jquery.easyui.min.js:91 jquery-1.4.4.min.js:16:278
|
|
|
13
|
General Category / Bug Report / Re: datagrid cellediting and datagrid subgrid conflict
|
on: November 19, 2015, 05:56:07 AM
|
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css"> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script> <script type="text/javascript" src="http://www.jeasyui.com/easyui/datagrid-detailview.js"></script> <script type="text/javascript" src="http://www.jeasyui.com/easyui/datagrid-cellediting.js"></script> </head> <body> <script type="text/javascript"> $(document).ready(function() { $('#dg').datagrid({ onEndEdit: function(){ $(this).datagrid('options').view.canUpdateDetail = false; }, columns:[[ {field:'itemid',title:'Item ID',width:200, editor: 'textbox'}, {field:'productid',title:'Product ID',width:100,align:'right', editor: 'textbox'}, {field:'listprice',title:'List Price',width:100,align:'right', editor: 'textbox'} ]], singleSelect: true, fitColumns: true, data:[ {"itemid":"EST-12","productid":"RP-SN-01","listprice":"18.50","unitcost":"12.00","status":"P","attr1":"Rattleless"}, {"itemid":"EST-13","productid":"RP-LI-02","listprice":"18.50","unitcost":"12.00","status":"P","attr1":"GreenAdult"}, {"itemid":"EST-16","productid":"FL-DLH-02","listprice":"93.50","unitcost":"12.00","status":"P","attr1":"AdultFemale"} ], view: detailview, detailFormatter:function(index,row){ return '<div style="padding:2px"><table class="ddv"></table></div>'; }, onExpandRow: function(index,row){ var ddv = $(this).datagrid('getRowDetail',index).find('table.ddv'); ddv.datagrid({ data:[ {"orderid":"1004","linenum":"2","itemid":"EST-12","quantity":"1","unitprice":"18.50"}, {"orderid":"1013","linenum":"1","itemid":"EST-12","quantity":"1","unitprice":"18.50"}, {"orderid":"1014","linenum":"1","itemid":"EST-12","quantity":"1","unitprice":"18.50"} ], fitColumns:true, singleSelect:true, rownumbers:true, loadMsg:'', height:'auto', columns:[[ {field:'orderid',title:'Order ID',width:200, editor: 'textbox'}, {field:'quantity',title:'Quantity',width:100,align:'right', editor: 'textbox'}, {field:'unitprice',title:'Unit Price',width:100,align:'right', editor: 'textbox'} ]], onResize:function(){ $('#dg').datagrid('fixDetailRowHeight',index); }, onLoadSuccess:function(){ setTimeout(function(){ $('#dg').datagrid('fixDetailRowHeight',index); },0); } }); $('#dg').datagrid('fixDetailRowHeight',index); ddv.datagrid('enableCellEditing').datagrid('gotoCell', { index: 0, field: 'orderid' }); } }); $('#dg').datagrid('enableCellEditing').datagrid('gotoCell', { index: 0, field: 'itemid' }); }); </script> <div id = "dg"></div> </body>
|
|
|
|