i am sending a ListofMap say 'ListofCSVMap' from my Grails(2.2.4) controller to Extjs (4.2.1) store
Like this
csvMap.put('Code', code)
csvMap.put('Number', number)
csvMap.put('Country', country)
listOfCsvMap.add(csvMap)
session.setAttribute("rows", listOfCsvMap)
render([items:listOfCsvMap] as JSON)
Now in my Extjs grid panel i am using the above listofCsvMap like this in my extjs store
var store1;
Ext.onReady(function() {
document.getElementById('legendId').style.display = "none";
store1 = new Ext.data.JsonStore({
storeId: 'myStore1',
pageSize: 20,
proxy: {
type: 'ajax',
url:'loadGrid',
reader: {
type: 'json',
root: 'items'
}
},
fields: ['Code','Number','Country']
});
i am editing a country using Roweditor Plugin like this
{
text : '<b>' + 'Country Of Origin' + '</b>',
//locked : true,
width : 110,
sortable : false,
dataIndex : 'Country',
editor : {
// for editable field, set a proper field xtype for it
xtype : 'combobox',
queryMode : 'remote',
editable : true,
id: 'countryDrop',
displayField : 'countryName',
valueField : 'countryName',
allowBlank : false,
store : new Ext.data.JsonStore({
proxy: {
type: 'ajax',
url: 'loadCountry',
reader: {
type: 'json'
}
},
autoLoad: true,
fields: [
{type: 'string', name: 'countryName'}
]
})
}
我的要求是当用户编辑Extjs网格面板中的组合框的国家/地区字段时,我想将整个更新的Extjs存储返回到我的Grails控制器并更新我在会话中存储的listOfCsvMap或是否可以更新编辑后自己的extjs网格中的session属性
请帮帮我!