Because I am using the Gantt viewer in a real world situation whereby multiple projects are stored in one table I am finding that the ID column cannot be used within the chart. Ideally I'd like to use an ID column for the chart that is essentially the Row ID starting from 1.
Is there a way to do this as it stands?
I'd really prefer to avoid using the Custom EntityFramework Provider as it seems horribly overcomplicated and when I did try it just didn't work.
Without wanting to sound rude, this control still seems like a Beta control, examples are basic, documentation is missing, critical functionality is missing etc. It's really off putting seeing that it is now considered to be a live control with the implication that like other controls it will now be left to stagnate.
I really want to use this kind of thing in my application but am left feeling that I'd really be better off with a commercial Gantt viewer even with only rudimentary requirements...
6 Answers, 1 is accepted
Could you elaborate a bit more on the scenario where you need to use the RowID. For what binding scenario you need such ID?
As for the custom Entity Framework Provider - please specify what exactly doesn't work at your? Do you encountered any exception or simply the binding is not correctly applied? As demonstrated in our help article below, you should simply create a custom class for the provider and then implement the Get, Update, Delete and Insert methods with the help of the mapped tables and objects from the Entity Framework model. Finally, you should provide the RadGantt control with the newly created custom provider at the Page_Load.
Well the RowID is a useful reference for two people discussing the gantt chart as they can refer to rows by ID. All the Gantt charts that I have seen have had the facility to do it. It wouldn't be an issue here if I just had the one gantt in the database table but with multiple gantts it will cause issues as the rowID won't start at 1 for each gantt and would not be consecutive.
My solution would be to use a custom column in the db query but am put off by the complexity of the custom provider.
I'll have another stab at that today and post any findings.
I would suggest you to refer to the following Code Library, demonstrating the implementation of the custom provider with a runnable sample :
As for the RowID, I would suggest you to submit your feature request in our feedback portal:
in the meanwhile is it possible to get the row index of every bound task of the gantt chart on server-side. I use a custom provider to crud my tasks. Thanks.
In order to achieve the desired functionality, my suggestion is to store the row number as part of the gantt task model in the db and to utilize the custom task field functionality.
I suppose with row number you mean some type of counter which increments each time a new task is added. But in my case this is not enough. I need the exact row index of each task, i.e. that if I drag a task from row 6 to row 3 the row number shall change from 6 to 3. I need that because I have a grid which contains all the different task with additional tasks' data (e.g. assigned resources). This grid should be grouped by this number to get the groups in exact the same order as the tasks inside the gannt chart. Thanks in advance.