1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Villaflores,Chiapas,Mexico
    Posts
    90
    Vote Rating
    2
    Answers
    8
    icebergdelphi is on a distinguished road

      0  

    Default Answered: checkcolumn not editable and Issue extjs 4.2.1

    Answered: checkcolumn not editable and Issue extjs 4.2.1


    Hi, I have a problem with checkcolumn column every time I click it appears this problem: Uncaught TypeError: Can not call method 'indexOf' of undefined ext-all.js: 21 and anything happens with the column, i need to change the column status: true or false.


    My MySQL database I have defined this field: status_seguimiento as tinyint


    the code for the grid:
    Code:
      xtype: 'gridpanel',
                                        itemId: 'grdLstUnidadesSeguimiento',
                                        store: 'storeSeguimiento',
                                        columns: [
                                            {
                                                xtype: 'gridcolumn',
                                                hidden: true,
                                                enableColumnHide: false,
                                                dataIndex: 'idUnidad',
                                                hideable: false,
                                                text: 'idUnidad'
                                            },
                                            {
                                                xtype: 'gridcolumn',
                                                width: 333,
                                                layout: 'fit',
                                                dataIndex: 'nombre',
                                                text: 'Listado de Unidades',
                                                flex: 4
                                            },
                                            {
                                                xtype: 'checkcolumn',
                                                dataIndex: 'status_seguimiento',
                                                text: 'MyCheckColumn3',
                                                flex: 1
                                            }
    is this a checkcolum bug?
    i´m using sencha architech 3


  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    106
    Vote Rating
    13
    Answers
    10
    Zinnia will become famous soon enough

      1  

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    Villaflores,Chiapas,Mexico
    Posts
    90
    Vote Rating
    2
    Answers
    8
    icebergdelphi is on a distinguished road

      0  

    Default


    Woou Thanks , maybe in this new ver., something changed. Thanks i really appreciate it. But however my code works very well with localStorage Proxy, my only problem is with a json proxy.

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Location
    Villaflores,Chiapas,Mexico
    Posts
    90
    Vote Rating
    2
    Answers
    8
    icebergdelphi is on a distinguished road

      0  

    Default


    Quote Originally Posted by Zinnia View Post
    Thanks sorry for not reply before, but the issue was ( or my error), that i was missing the update line in the api section:
    Code:
    api: {
                        read: 'controller/read',
                        update: 'controller/changeStatu' //I  was missing this line
                    },
    So when we are with brain busy, we forget the basic things

Thread Participants: 1

Tags for this Thread