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

Database Structure SQl code to C# code

15 Answers 58 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Jakub asked on 09 Jul 2014, 02:02 PM
Hi.
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

Sort by
0
Bozhidar
Telerik team
answered on 11 Jul 2014, 07:47 AM
Hi Jakub,

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.

 
0
Khushboo
Top achievements
Rank 1
answered on 16 Jul 2014, 05:57 AM
Hi,

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 
0
Bozhidar
Telerik team
answered on 16 Jul 2014, 06:36 AM
Hi,

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.

 
0
Khushboo
Top achievements
Rank 1
answered on 16 Jul 2014, 12:50 PM
hi,

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..........
0
Bozhidar
Telerik team
answered on 16 Jul 2014, 01:45 PM
Hello,

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.

 
0
Khushboo
Top achievements
Rank 1
answered on 21 Jul 2014, 04:48 AM
Hi Bozidhar,

Can i use asp:ObjectDataSource control for binding radgantt?
0
Khushboo
Top achievements
Rank 1
answered on 21 Jul 2014, 12:45 PM
Hi Bozidhar,

In addition to radgantt demo columns i want few more columns like companyName but its not displaying

0
Hristo Valyavicharski
Telerik team
answered on 23 Jul 2014, 03:06 PM
Hi Khushboo,

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.

 
0
Ray
Top achievements
Rank 1
answered on 26 Jul 2014, 11:39 PM
"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."

Does not work, even after hacking code to match your objectdatasource!!!

0
Dimitar Terziev
Telerik team
answered on 31 Jul 2014, 12:16 PM
Hi Ray,

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.

 
0
Ray
Top achievements
Rank 1
answered on 02 Aug 2014, 04:16 AM
The columns are working, but the binding to the data source is not..
Linqdatsource was working as well, but same old broken datasource bindings..

0
Bozhidar
Telerik team
answered on 04 Aug 2014, 07:09 AM
Hi Ray,

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.

 
0
admin
Top achievements
Rank 1
answered on 15 Jun 2016, 11:58 AM

Hi Bozhidar

I know that this topic is old but are you currently support binding mentioned by Jacob two years ago?

Regards

0
Bozhidar
Telerik team
answered on 16 Jun 2016, 07:15 AM
Hi,

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
0
admin
Top achievements
Rank 1
answered on 16 Jun 2016, 09:48 AM
Thank you very much Bozhidar. I appreciate your commitment.
Tags
Gantt
Asked by
Jakub
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Khushboo
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Ray
Top achievements
Rank 1
Dimitar Terziev
Telerik team
admin
Top achievements
Rank 1
Share this question
or