How can i use code below in DBGrid. When i just copy paste this, it doesn't work.
(this code is used on mobile GridList and works)
function beforeInit(sender, config)
{
config.loadingText=false;
config.grouped=false;
// config.selectedCls='';
config.itemTpl='<table style="width:100%;white-space: nowrap;vertical-align:middle;">'+
'<tr>'+
'<td style="color:#0160a9;padding-left:0px;font: bold 18px/24px helvetica, arial, sans-serif" colspan="2">{0}</td>'+
'</tr>'+
'<tr>'+
'<td style="font: 15px helvetica, arial, sans-serif;padding-top:4px;color:#535454;">{1}</td>'+
'</tr>'+
'<tr>'+
'<td style="font: 15px helvetica, arial, sans-serif;padding-top:4px;color:#535454;width:80%;white-space: normal;word-break: break-word;">{2}</td>'+
'</tr>'+
'</table>';
}