Completed
Last Updated: 26 Jan 2018 11:59 by ADMIN
ADMIN
Hristo
Created on: 17 Jan 2018 08:47
Category: GanttView
Type: Bug Report
1
FIX. RadGanttView - while printing the control should respect the FormatString property set to the columns
Workaround: In the case of DateTime columns one can handle the PrintElementFormating event and change text of the print elements with the required format string
private void RadGanttView1_PrintElementFormatting(object sender, Telerik.WinControls.UI.GanttViewPrintElementFormattingEventArgs e)
{
    if (e.PrintContext == GanttViewPrintElementContext.DataCell)
    {
        DateTime date;
        if (e.PrintElement.DrawText && DateTime.TryParse(e.PrintElement.Text, out date))
        {
            e.PrintElement.Text = string.Format("{0:D}", date);
        }
    }
}
0 comments