The first line of code you have provided is valid and works fine for me. Just one note -- can you confirm it is used in PreRender
event handler and not in PrePaint
? The PrePaint
event is fired when the chart layout calculation has been already completed. That is -- the chart title size is calculated according to its current content, so changing it at this point will not be reflected. So you might experience this issue with PrePaint
, but it should be fine in PreRender.
the Telerik team
, the state of the art learning tool for Telerik products.