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

Poblems adding data to grid on left side of control

1 Answer 39 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 05 Jul 2014, 04:27 PM
I can easily add the bars to the right side, but adding the test and start, end date/time on the grid on the right is not working?  Do I need to add this separately?


 var projectInfo = (from pi in dbContext.tasks where pi.taskID == idPassed select pi).First();

GanttViewDataItem item1 = new GanttViewDataItem();
item1.Start = Convert.ToDateTime(projectInfo.dateAdded);
item1.End = Convert.ToDateTime(projectInfo.taskDT);
item1.Progress = 30;
item1.Title = projectInfo.taskName;

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Jul 2014, 12:43 PM
Hi Claude,

Thank you for writing.

When you add an item it should be added to both - left and right side of RadGanttView. You can read the article Populating with Data Programmatically | UI for WinForms Documentation. If you still have problems adding items to RadGanttView, please provide me with more information about your project and with a sample if needed.

Let me know how this works out.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GanttView
Asked by
Claude
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or