We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GanttGrid cell templates

Thread ID:





102309 Jan 18,2012 02:31 PM Jan 20,2012 12:00 AM Silverlight 2
Tags: GanttControl
Oscar Wahlen
Asked On January 18, 2012 02:31 PM

How can I change the GanttGrid's cell templates? I have tried to set the StyleInfo.CellItemTemplate and StyleInfo.CellEditTemplate properties to my custom DataTemplate in the NodesPopulated event handler but nothing happens.

I am using the following lines of code:

((GanttGrid)sender).InternalGrid.Columns[i].StyleInfo.CellItemTemplate = oItemTemplate;
((GanttGrid)sender).InternalGrid.Columns[i].StyleInfo.CellEditTemplate = oEditTemplate;

Oscar Wahlen
Replied On January 19, 2012 03:18 AM

I have finally managed to set my custom DataTemplate. What I did was move the style setter code to the GanttGrid's Loaded event handler. In the event handler I manually create the column collection and set the GridStyleInfo.CellType property to DataBoundTemplate. This allowed me to set a custom DataTempate.

Thanigaivelan [Syncfusion]
Replied On January 20, 2012 12:00 AM

Hi Oscar,

Thanks for showing interest on Syncfusion products.

We have exposed the GanttGrid as public in our upcoming release Volume 1, 2012. You can customize the GanttGrid by handling the Gantt’s loaded event. The procedure which you have followed to customize the column is correct and you can do that in Gantt’s loaded event itself.

Please let us know if you need any further assistance, we are happy to help you.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.