您好,登錄后才能下訂單哦!
//產(chǎn)品store window.product_store=Ext.create('Ext.data.Store',{ fields:[ 'id', 'aid', 'webid', 'title', 'kindlist', 'attrid', 'ishidden', 'displayorder', 'kindname', 'attrname', 'themelist', 'iconlist', 'modtime', 'templet', 'url', 'finaldestid', 'finaldestname' ], proxy:{ type:'ajax', api: { read: SITEURL+'article/article/action/read', //讀取數(shù)據(jù)的URL update:SITEURL+'article/article/action/save', destroy:SITEURL+'article/article/action/delete' }, reader:{ type: 'json', //獲取數(shù)據(jù)的格式 root: 'lists', totalProperty: 'total' } }, remoteSort:true, autoLoad:true, pageSize:30, listeners:{ load:function( store, records, successful, eOpts ) { if(!successful){ ST.Util.showMsg("{__('norightmsg')}",5,1000); } var pageHtml = ST.Util.page(store.pageSize, store.currentPage, store.getTotalCount(), 10); $("#line_page").html(pageHtml); window.product_grid.doLayout(); $(".pageContainer .pagePart a").click(function () { var page = $(this).attr('page'); product_store.loadPage(page); }); } } });
load( Ext.data.Store store, Ext.data.Model[] records, Boolean successful, Object eOpts )
每當(dāng)store從遠(yuǎn)程數(shù)據(jù)源讀取數(shù)據(jù)時(shí)觸發(fā)此事件.
store : Ext.data.Store
當(dāng)前Store對(duì)象
records : Ext.data.Model[]
數(shù)據(jù)記錄數(shù)組
successful : Boolean
當(dāng)操作成功時(shí)為'true'.
eOpts : Object
The options object passed to Ext.util.Observable.addListener.
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。