Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Disable grid row

  1. #11
    Sencha Premium User tlloyduk's Avatar
    Join Date
    Sep 2010
    Posts
    91
    Answers
    1

    Default

    yep, good point

  2. #12
    Sencha Premium User jvandemerwe's Avatar
    Join Date
    Apr 2009
    Location
    Raalte, Netherlands
    Posts
    261
    Answers
    7

    Default

    This one works for me (a bit abusing some btn classes though):

    No additional CSS required!!!

    Code:
    viewConfig: {
       getRowClass: function (record) {
          var pfix = Ext.baseCSSPrefix;
          var disabledClass =  pfix + 'item-disabled ' + pfix + 'btn-disabled ' + pfix + 'btn-plain-toolbar-small';
          return record.get('yourfield') !== 'YourValue' ? disabledClass : '';
       }
    }
    sh_00159.png
    Professional Sencha ExtJS and PHP development since 2007

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 24 Jan 2012, 2:32 AM
  2. How to disable cell editing on Ext.grid.property.Grid?
    By ext-spring-mvc in forum Ext: Discussion
    Replies: 0
    Last Post: 30 Jun 2011, 7:12 AM
  3. Replies: 0
    Last Post: 27 Jun 2011, 11:23 PM

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
  •