Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现当网格具有分页属性时,您不应该第二次从服务器发送元数据属性。因为如果您第二次发送分页中断。我只需要先发送。我应该如何克服这个问题?问题来自我在文档中找到的这段代码。
listeners: { //under the store 'metachange': function(store,meta){ grid.reconfigure(store,meta.columns); }
一份提案:
listeners: { //under the store 'metachange': function(store,meta){ if ( !this.meta ) { this.meta = meta; grid.reconfigure(store,meta.columns); } }