Answers for "sencha hide rowexpander on some rows"

0

sencha hide rowexpander on some rows

One thing is to remove the +/- icon, which can be done via grid viewConfig:

getRowClass: function (record, rowIndex, rowParams, store) {
     var yourFieldofChoice = record.get('yourFieldofChoice');
     if (yourFieldofChoice == null) {
         return 'hide-row-expander';
     }
 },

Define css for hide-row-expander:

.hide-row-expander .x-grid-row-expander {
visibility: hidden;
}
Posted by: Guest on November-10-2020

Code answers related to "sencha hide rowexpander on some rows"

Browse Popular Code Answers by Language