Jump to content

help with uniDBGrid RowBody feature


Bresler

Recommended Posts

Hi

 

Thanks for ask. I was talking about this feature: http://docs.sencha.com/extjs/4.2.5/#!/api/Ext.grid.feature.RowBody

 

Thanks God I already solved it, here was the solution I found (maybe could there a better one):

RepDBGrid.JSControl.JSCode('features:[{' + '      ftype: "rowbody", ' +
    '      getAdditionalData: function (data, idx, record, orig) { ' +
    '          return {' +
    '              rowBody: ''<div style="padding: 3; font-size:9px"><b>Chapa:</b>'' + record.get("5") + ''<br/>'' + ' +
    '                                                                   ''<b>CI:</b> '' + record.get("4") + ''<br/>'' + ' +
    '                                                                   ''<b>Cargo:</b> '' + record.get("8") + ''</div>''' +
    '          };' +
    '      }' +
    '  }]');

Any suggestion will well receibed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...