We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingControl : GroupCaptionRowText formatting

Currently our CaptionText is set to the following:

{CategoryCaption}: {Category} - ({RecordCount}) items

I need to be able to render the text using different font attributes though. I need the {CategoryCaption} to render as usual but the {Category} I need to be bold and the {RecordCount} to be italic.

I'm guessing the only way to do this is to do a custom renderer/model, etc which I have done in the past for other operations.

I would love some help on this matter. I'm hoping there is already example code out there to do this.

My biggest questions would have to do with how to get access to what parts are being displayed in the cell and what renderers to extend.

Thanks for your time,
-jv


2 Replies

JV Jeff Voigt April 29, 2010 08:07 PM UTC

I figured this out by modifying the cell type on the QueryCellInfo event to RichText and using a RichTextBox to convert the raw text into RTF using bold/italics where needed.

Thanks...


JJ Jisha Joy Syncfusion Team May 3, 2010 04:36 AM UTC

Hi Jeff,

Thank you for your update.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon