Results 1 to 4 of 4

Thread: adding combox in editable grid to edit gives error: too much recursion

  1. #1

    Default adding combox in editable grid to edit gives error: too much recursion

    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

  2. #2
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    108

    Default

    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.
    --Chad Eberle
    Web Application Architect
    Pierce County Software Development
    Pierce County, Washington

  3. #3

    Default

    Hi thanks for your time.

    Well i have a datastore

    Code:
     
    var status_store =new Ext.data.JsonStore({
    url:'json_number_status.php',
    autoLoad:true,
    fields:[{name:'SID'},{name:'SNAME',type:'string'}]
    });
    and where it goes wrong is .

    Code:
     
    
    {
    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.

  4. #4
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    108

    Default

    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.
    --Chad Eberle
    Web Application Architect
    Pierce County Software Development
    Pierce County, Washington

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •