Jump to content

Links in TUniDBGrid group header


zilav
 Share

Recommended Posts

I need a group header which is a domain name to be a link (or have a glyph with a link next to it), but grouping unigrid by a field containing link doesn't work because grouping field value is used in ID of div element and screws the whole grid.

Another method after checking extjs docs is changing view.features[0].groupHeaderTpl.html template, but I can't figure out what exactly and in what client event to put. Can anyone please help with it?

Link to comment
Share on other sites

Hi zilav.

 

Maybe you'd like this?

 

UniDBGrid1 -> ClientEvents -> ExtEvents -> ...

function beforerender(sender, eOpts)
{
  sender.view.features[0].groupHeaderTpl = "<a href='http://{name}' target='_blank'>{columnName}: {name}</a>"
}

Best regards.

Link to comment
Share on other sites

 Share

×
×
  • Create New...