1
我嘗試在extjs4.2中使用itemSelector,但我不知道我可以配置兩個商店。第一個多重選擇面板由商店填充,第二個也有另一個面板。Extjs4 itemselector,配置問題
我需要保存數據庫中的變體,因爲我使用的存儲是ajax-proxy數據存儲。 這是我itemselector:
{
xtype: 'itemselector',
id:'itemselector',
name:'userRoles',
anchor:'100%',
store: dsRoles,
toStore: dsUserRoles,
valueField:'id',
displayField:'name',
/*here there is a problem*/
value: dsUserRoles,
msgTarget: 'side',
fromTitle : 'Available',
toTitle : 'Selected'
}
在「選定字段」的值從查詢中來,而不是靜態的像在所有我發現的例子。
編輯:toStore屬性不起作用,今天這部分讓我瘋了:當我加載它含有一個tabpanel其中包含itemselector的secondTime這是什麼,是呈現窗口: 蒙山鉻我發現此錯誤Uncaught TypeError: Cannot read property 'internalId' of undefined
任何幫助是有幫助的。
我讓你說做都在改變,我解決的觀點麻煩,但是當我加載在itemselector數據只左邊的部分被加載,但實際上沒有變化。我必須改變的地方,如果我想在負載上填充也是最重要的部分? – AfanfeFana
我對rigit面板做了一些修改,比如提交值,但現在全部完成了......非常感謝您的支持! – AfanfeFana