Customize the format in Ganttiew columns

2 posts, 0 answers
  1. Sture
    Sture avatar
    3 posts
    Member since:
    Feb 2012

    Posted 05 Apr 2012 Link to this post

    How do I format the GanttView Columns displaying Custom formats?
    I have try to set the StringFormat like this:
    <telerik:ColumnDefinition MemberBinding="{Binding End , StringFormat={}{0:d}}" Header="End" ColumnWidth="100" >
                             <telerik:RadDatePicker SelectedValue="{Binding End,Mode=TwoWay}" />

    But it does not work.

    As a workaround i have done following in my custom tasks class:
    public String End_str
            return base.End.ToString("yyyy-MM-dd"); 

    Br /Sture
  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Apr 2012 Link to this post

    Hi Sture,

    Thank you for pointing us this issue out. I logged it in PITS where you can track its progress.

    Another possible work-around for this problem is to use the CellTemplate property and to format the value within the template.

    Your Telerik points were updated for your cooperation.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top