EasyUI Forum

General Category => General Discussion => Topic started by: Coder on February 11, 2018, 08:47:30 PM



Title: [SOLVED] datagrid with 'view: scrollview' didnot fire onLoadSuccess :(
Post by: Coder on February 11, 2018, 08:47:30 PM
All simple

Code:

<table id="dgData" class="easyui-datagrid" style="width:99%;height:100%"
toolbar="#dgDataToolbar"
url="//ajx.localhost/?getData"
idField="txID" fitColumns="true" singleSelect="true"
data-options="border:false
, view: scrollview
, autoRowHeight: false
, rownumbers: false
, pageSize: 50
, filterDelay: 800
, remoteFilter: true
, filterPosition: 'top'
, onSelect:function(index,row){ dgDataSelect(index,row) }
, onLoadSuccess:function(){ dgDataRowsLoad() }
, onDblClickRow:function(){ dgDataOpen(index,row) }
, onLoadError:function(){ dgLoadError() }
"
>




in js:

Code:
 function dgDataRowsLoad(){
    console.log( "rows loaded!" );
 };

Data row loaded from server and showed, but event didnot fire :(

ANY HELP, please :)


Title: Re: datagrid with 'view: scrollview' didnot fire onLoadSuccess :(
Post by: stworthy on February 12, 2018, 06:37:46 AM
The 'onLoadSuccess' event fires when loaded data successfully. Please look at this example https://www.jeasyui.com/demo/test/test2.html


Title: Re: datagrid with 'view: scrollview' didnot fire onLoadSuccess :(
Post by: Coder on February 13, 2018, 03:51:29 AM
FANTASTIC! ;)

newly downloaded https://www.jeasyui.com/easyui/datagrid-scrollview.js same as oldes
(file compare dont show any differences)
but with newest lib ALL WORK!

may be high water in sea of tranquility on the moon prevented me :)

Thanx!