How to set a grid row to bold based on a condition.

Hi Team,

 

I need to style the section list based on a condition. The grid row should be bold instead of applying color



I can use the  prepareResponseCollection: function(collection) method and set color but font-weight could not be set.



how to achieve this?

 

Please find the attachments.





Thanks in advance!

 

Sample Grid Row,

 

Methods,

 

Required Row,

 

 



Regards,

Bhoobalan P.

Like 0

Like

2 comments
Best reply

Hello Bhoobalan,

 

Please try the following: 

 

prepareResponseCollectionItem: function(item) {
          this.callParent(arguments);
          if (item.get("UsrIsApplicationInProcess")) {
            item.customStyle = Ext.apply({}, {
              "background-color": "#ccc",
              "font-weight": "bold"
            }, item.customStyle);
          }
        }

 

Best regards,

Bogdan S.

Hello Bhoobalan,

 

Please try the following: 

 

prepareResponseCollectionItem: function(item) {
          this.callParent(arguments);
          if (item.get("UsrIsApplicationInProcess")) {
            item.customStyle = Ext.apply({}, {
              "background-color": "#ccc",
              "font-weight": "bold"
            }, item.customStyle);
          }
        }

 

Best regards,

Bogdan S.

Bogdan Spasibov,

 

Thanks much!

 

It works.

Show all comments