0
중첩 목록을 새로 고치는 방법을 아는 사람이 있습니까?중첩 목록 새로 고침
목록을 만들 예정입니다. 항목을 탭하면 중첩 목록이로드됩니다. 중첩 목록에서 가로 지르면 다른 항목으로 가볍게 치고 이전 항목으로 되돌아갑니다. 그 항목은 마지막으로 남아 있던 장소에 여전히 붙어 있습니다.
나는Ext.getCmp('nestedList').refresh();
를 사용하여 시도하지만 텟 아무튼이 일 것으로 보인다.
다음은 중첩 목록 패널에 대한 코드입니다.
Ext.define("InfoImage.view.nestedList", {
extend:'Ext.NestedList',
xtype:'nestedList',
id:'nestedList',
config:{
fullscreen:'true',
title:'Work Items Task 1',
// ui:'normal',
xtype:'nestedList',
displayField : 'text',
store:'nestedListStore',
style: {
'background-color': 'rgba(0,140,153,0.1)'
}
}
});
및 중첩 된 목록을로드하기위한 코드는 다음과 같습니다
showListDetail : function(view, index, item, record) {
var rec = view.getStore().getAt(index);
// Ext.getStore('workItemStore').add({Task: '7'
// },{Server: 'mobcomp1'});
if (index == 0) {
this.getDocPanel().animateActiveItem(
this.getNestedPanel(), {
type : 'slide',
direction : 'up',
duration : 250
});
Ext.getCmp('nestedList').reload();
}
어떤 도움에 감사드립니다.
미리 감사드립니다.
"store"는 내 nestedlistStore 이름을 의미하거나 "store"자체를 의미합니다. 중첩 된 목록을로드하기 직전에 컨트롤러에 코드를 시도했지만 작동하지 않는 것 같습니다. – Khush
내 말은, 중첩 된 ListStore .. 이런 식으로 뭔가 ..'Ext.getCmp ('nestedListId'). getStore() .load();'.. –
IT WORKED. 정말 고맙습니다. – Khush