Jump to content

TUniDBGrid support for RowBody feature


Bresler

Recommended Posts

We already use that but using a client-side code, you may use Gid->ClientEvents->UniEvents->beforeInit:

 

config.features=[{
        ftype: 'rowbody',
        getAdditionalData: function(data, idx, record, orig) {
            // Usually you would style the my-body-class in a CSS file
            return {
                rowBody: '<div style="padding: 1em">' + record.get("desc") + '</div>',
                rowBodyCls: "my-body-class"
            };
        }
    }];

 

  • Upvote 1
Link to comment
Share on other sites

×
×
  • Create New...