[英]Extjs TreeStore, more than one asynchronous requests, treepanel rendering dislocation
我的 extjs 版本是 6.5,我創建了一個 treepanel 和 GridPanel。 當我點擊GridPanel中的記錄時,會觸發treepanel的treeStore加載數據。 如果我單擊第一條記錄,TreeStore 將加載更多數據並減慢速度,但我已經單擊了第二條記錄。 同時,第二次點擊請求已經響應。 因此,treepanel 將呈現第一次點擊的響應數據。
Ext.data.store 沒有這個問題。 我怎么解決這個問題?
您可以在 treestore https://docs.sencha.com/extjs/6.5.3/modern/Ext.data.Store.html#event-load上收聽加載事件
並切換 grid.disableSelection(true); 基於選擇狀態https://docs.sencha.com/extjs/6.5.3/modern/Ext.grid.Grid.html#cfg-disableSelection
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.