Results 1 to 3 of 3

Thread: Grid selmodel renderer not working since 6.0.2 (current is 6.5)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2017
    Location
    Mexico
    Posts
    10

    Default Grid selmodel renderer not working since 6.0.2 (current is 6.5)

    Hi,

    I found an old fiddle mentioning an issue about the selmodel renderer not running, but I can't find if he/she got an answser (I even found one of 4.2.1 with the same issue).

    I created a 6.5 fiddle with selmodel that can confirm that this case it's not working and another with 6.0.2 that it works.

    Can someone tell me what's the alternative to the selmodel renderer?

    Thanks in advance

  2. #2
    Sencha Premium Member richardvd's Avatar
    Join Date
    Jun 2011
    Location
    NL
    Posts
    255

    Default

    Yes the renderer config is missing. I think it's a bug. Here is an override to get it back:
    Code:
    Ext.define('Override.selection.CheckboxModel', {
        override: 'Ext.selection.CheckboxModel',
        getHeaderConfig: function () {
            var config = this.callParent();
            config.renderer = this.renderer;
            return config;
        }
    });
    Then your selModel config can look like this:
    Code:
    selModel: {
        type: 'checkboxmodel',
        renderer: function (value, metaData, record, rowIndex, colIndex, store, view) {
            if (rowIndex==0) {
                 return '';
            } else {
                 return this.defaultRenderer(value);
            }
       }
    },

  3. #3
    Sencha User
    Join Date
    Nov 2017
    Location
    Mexico
    Posts
    10

    Default [SOLVED]

    Works like a charm. ty

Similar Threads

  1. Nested Grid with checkbox(selmodel) is not working
    By sencha.dev in forum Ext 5: Bugs
    Replies: 5
    Last Post: 14 Dec 2017, 3:03 AM
  2. Nested Grid with checkbox(selmodel) is not working
    By sencha.dev in forum Ext 5: Bugs
    Replies: 1
    Last Post: 13 Jun 2016, 3:27 PM
  3. Replies: 4
    Last Post: 3 May 2012, 3:14 PM
  4. Grid, Date renderer is'nt working
    By -Alessio- in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 3 Sep 2007, 1:10 AM

Tags for this Thread

Posting Permissions

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