Results 1 to 3 of 3

Thread: view.selModel is undefined with locked column

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    26
    Vote Rating
    0
      0  

    Default Answered: view.selModel is undefined with locked column

    Hi,
    I am trying to implement a locking column in a grid but get an error in FF:

    Code:
    TypeError: view.selModel is undefined
    When debugging, I can see that the error comes up in Ext.grid.plugin.Editing and view does contain two more views with selection models set: normalView and lockedView.

    I tried the examples and they work fine, so I wonder where this comes from. I simply set the first column to locked:true and the others to locked:false

    The grid looks like this:

    Code:
    Ext.define('My.grid.Panel', {
        extend : 'Ext.grid.Panel',
        alias : 'my.grid.panel',
        autoHeight : true,
        selModel : Ext.create('Ext.selection.RowModel', {
            singleSelect : true
        }),
        resizable : false,
        frame : false,
        plugins : [ {
            ptype : 'rowediting',
            clicksToEdit : 2,
            pluginId : 'rowediting',
            listeners : {
                canceledit : function(editor, e, eOpts) {
                    e.grid.store.removeAt(0);
                }
            }
        } ],
        tbar : [ {
            text : 'Add'
        } ],
        listeners : {
            activate : function(grid) {
                grid.store.load();
            }
        },
        viewConfig : {
            stripeRows : true
        }
    });
    Can anyone give me a hint what I am doing wrong?

    I am working with ExtJS 4.1.1a, so maybe it is just a version too early?

    Thank you,
    Oliver

  2. I'm not getting that error when I lock a column in the row-editing example.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    I'm not getting that error when I lock a column in the row-editing example.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Apr 2010
    Posts
    26
    Vote Rating
    0
      0  

    Default

    Hi, Mitchell,
    thanks for testing. I think I will have to check my whole app to find out where the problem is then. Maybe there is some wrong order of initializing the components or so.

    Regards,
    Oliver

Posting Permissions

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