This is a migrated thread and some comments may be shown as answers.

Customize the format in Ganttiew columns

1 Answer 71 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Sture
Top achievements
Rank 1
Sture asked on 05 Apr 2012, 02:43 PM
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:ColumnDefinition.CellEditTemplate>
                     <DataTemplate>
                         <telerik:RadDatePicker SelectedValue="{Binding End,Mode=TwoWay}" />
                     </DataTemplate>
                 </telerik:ColumnDefinition.CellEditTemplate>
             </telerik:ColumnDefinition>

But it does not work.

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



Br /Sture

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2012, 09:50 AM
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 >>

Tags
GanttView
Asked by
Sture
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or