Hey there! I'm currently working with Extjs and have created a grid that contains editable cells. One of these cells needs to be a combobox that retrieves its options from a script generating JSON data. The code for the grid and the combobox-cell-editor is functioning, but I'd like to cache the JSON request to the script after the initial call. Is this feasible?
I've included some code below where I define the combobox column in the grid constructor:
{
dataIndex:"authors_name",
id:"authors_name",
header:"Authors",
editable:true,
sortable:true,
editor:{
xtype:"combo",
allowBlank:false,
editable:false,
forceSelection: true,
displayField: 'authors_name',
valueField: 'authors_id',
store:new Ext.data.JsonStore({
proxy:new Ext.data.HttpProxy({
//This is the JSON request we want to cache
url: 'index.php?load=authors'
}),
root: 'items',
fields: ['authors_name','authors_id']
})
}
}