Results 1 to 4 of 4

Thread: renderer in checkcolumn

  1. #1
    Sencha Premium User
    Join Date
    Feb 2017
    Posts
    21

    Default renderer in checkcolumn

    Hello,

    I have a problem in a grid. (Extjs 6.5 modern toolkit)

    the function renderer is never call if the column is a checkcolumn

    Code:
    columns:[
    ....
    
    { 
    xtype: 'checkcolumn',
    headerCheckbox: false,
        text: 'test',
        dataIndex: 'edit',
        listeners:{
            checkchange: 'changeAcces',
            beforecheckchange: 'beforeChangeAcces'
    },
        renderer: function(value, meta, rec) {
            console.log(value);
            if (value == null) {
                return '';
            } else {
                return  new Ext.grid.column.Check().renderer(value);
            }
        }
    },
    ...
    ]
    In the classic toolkit this code it´s ok, but in the modern toolkit not.

    Thanks,

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2015
    Posts
    11

    Default

    The documentation shows that renderer is a BINDABLE did you try to bind the renderer ? Haven't worked with the modern framework yet.

  3. #3
    Sencha Premium User
    Join Date
    Feb 2017
    Posts
    21

    Default

    Do you say me a example? I don´t know how to bind the renderer. I've tried it but I'm not very familiar with the "bind"

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    4

    Default

    Same result.
    the renderer is not never called with MODERN toolkit https://fiddle.sencha.com/#view/editor&fiddle/2b5o
    and is caller in CLASSIC toolkit https://fiddle.sencha.com/#view/editor&fiddle/2b5n

    I didn't see any restriction in documention
    https://docs.sencha.com/extjs/6.5.2/...l#cfg-renderer

Similar Threads

  1. Replies: 2
    Last Post: 20 Jun 2016, 12:54 PM
  2. CheckColumn renderer
    By BLeenm in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 1 Nov 2015, 1:27 PM
  3. how to put renderer in checkcolumn grid ??
    By poojagarg89 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 12 Mar 2012, 9:06 PM
  4. Ext.ux.ListView.plugin.CheckColumn and Ext.ux.list.CheckColumn
    By KRavEN in forum Ext 3.x: User Extensions and Plugins
    Replies: 1
    Last Post: 2 Sep 2010, 8:10 AM

Posting Permissions

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