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

Remove DateTime in Group Row

2 Answers 62 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Azharshah
Top achievements
Rank 1
Azharshah asked on 16 Jan 2018, 11:35 AM

Hi,

I'm new to GanttView. I have a collection grouped by some ID as TaskSource. The collection is listed in RadGanttView.Columns. But I don't want the datetime to be displayed in the Grouped Row (Tree Header). How can I achieve this? Please help me on this.

 

Thanks & Regards,

Muhammad Azhar Shah

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 19 Jan 2018, 10:56 AM
Hello Azharshah,

To achieve your requirement you can define a CellTemplate for the DateTime column and use an IValueConverter to hide the date if the row is expandable. You can check this via the CellInfo.OriginalDataItem.CanExpand property. This approach is show in the CellTemplateBasedOnType SDK example. I hope that helps.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Azharshah
Top achievements
Rank 1
answered on 22 Jan 2018, 06:14 AM

Hi Martin,

Thank you for your solution. It works very nice.

 

Regards,

Muhammad Azhar Shah

Tags
GanttView
Asked by
Azharshah
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Azharshah
Top achievements
Rank 1
Share this question
or