I have a problem, because I want to change code SQL to code C#.
I'm creating 2 Tables and....
DataSet ds = new DataSet("Gantt");
ds.Tables.Add(dt);
ds.Tables.Add(gd);
//RadGantt1.DataSource = ds;
//RadGantt1.DataSourceID = null;
//RadGantt1.Data
//RadGantt1.DataSourceID = "GanttTasks";
RadGantt1.DataSource = ds;
//RadGantt1.DataSourceID = "GanttTasks";
//RadGantt1.DependenciesDataSource = gd;
//RadGantt1.DependenciesDataSourceID = "GanttDependencies";
Actually problem:
Telerik.Web.UI.Gantt.GanttDataSourceException: DependenciesDataSourceID may not be null in case of DataSource binding. So I changed last line, but I have another problem.
What I should do now?
15 Answers, 1 is accepted
With the current beta version of the RadGantt binding directly through the DataSource property is not supported. You have to bind the Gantt either declaratively through the DataSourceID property, or through a provider:
http://www.telerik.com/help/aspnet-ajax/gantt-data-binding-declarative-binding.html
http://www.telerik.com/help/aspnet-ajax/gantt-data-binding-xml-provider.html
We will do our best to provide support for this kind of binding in the upcoming Q3 release.
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
will this not support in 2014.2.618.45 version of telerik.... i mean wen am binding from code behind:
radgantt1.datasource=query;
radgantt.DependenciesDataSource = company;
radgantt1.Databind();
its throwing same exception
This is the same scenario, and as stated previously, it's currently not supported.
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Can i have start and end field of other datatype than to have datetime only?? like i want to show as day 0,day 1,day 2..........
The Start and End fields must be of type DateTime, and binding them to other types is not supported.
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Can i use asp:ObjectDataSource control for binding radgantt?
In addition to radgantt demo columns i want few more columns like companyName but its not displaying
Yes the Gantt control can be bound to ObjectDataSource.
Custom Columns functionality is implemented and will be included in the upcoming Service Pack. It is expected to be released in the end of the week.
Regards,
Hristo Valyavicharski
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Custom Columns functionality is implemented and will be included in the upcoming Service Pack. It is expected to be released in the end of the week."
Does not work, even after hacking code to match your objectdatasource!!!
Attached is a sample project demonstrating how to bind the RadGantt to an ObjectDataSource component.
Regarding the custom columns, could you clarify whether you experience any problems with them or the problems are related to the ObjectDataSource binding?
Regards,
Dimitar Terziev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Linqdatsource was working as well, but same old broken datasource bindings..
Please clarify whether the sample is not working out of the box, or after making some changes to it. If so, please paste the exact changes so that we can investigate. I would also like to remind you that implementing the CRUD operations through the events is currently not supported and will be included in the next official release.
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Hi Bozhidar
I know that this topic is old but are you currently support binding mentioned by Jacob two years ago?
Regards
Yes, binding to a DataSet and using the Server events for CRUD operations is supported in the current version of the Gantt control.
For convenience I'm also attaching a small sample page demonstrating how you can bind the Gantt to a Session stored list of objects.
Regards,
Bozhidar
Telerik