PDA

View Full Version : adding combox in editable grid to edit gives error: too much recursion



phpfreak
2 Jul 2009, 10:09 AM
Hi all, i have a little problem , at the moment i try to add a combobox to an editable grid i get an error:

too much excursion.
isHidden : function(colIndex){
34513 return this.config[colIndex].hidden;
34514 },

what am i overseeing?

it looks like the problem is the store.
but i use the exact same one in the adding part and its fine


thanks

PierceSD
2 Jul 2009, 10:18 AM
A code snippet of your column model would help.

"Too much recursion" means you have some circular chain of events or function calls. I've done this before with event listeners that call a method that causes the same event to fire again.

phpfreak
2 Jul 2009, 10:26 AM
Hi thanks for your time.

Well i have a datastore




var status_store =new Ext.data.JsonStore({
url (http://extjs.com/forum/'json_number_status.php'):'json_number_status.php' (http://extjs.com/forum/'json_number_status.php'),
autoLoad:true,
fields:[{name:'SID'},{name:'SNAME',type:'string'}]
});


and where it goes wrong is .





{


header:'Status',



width:100,

dataIndex:'status'

,editor:new Ext.form.ComboBox



(

{




name:'update_numbers_status',

store: status_store,

autoLoad:true,

displayField:'SNAME',

valueField:'SID',

hiddenName:'SID',

}



)





}



i use the same store in another combo somewhere and its fine.

PierceSD
2 Jul 2009, 10:35 AM
I'd start by removing code that isn't really necessary for the grid editor. Can't say for certain that this will have any effect whatsoever, but at least you can rule something out. :)

The "name", "hiddenName" and "autoLoad" properties of your combo box aren't really necessary for a grid editor. The first two are only useful for a form, and the third probably doesn't do anything at all.