Hey Telerik Team !
I've a requirement in my Gantt Chart for MVC.
Same like Resource Assignment Dialog i need to put one more thing (Cars) in a separate dialog box like resources dialog from where the Cars will be assigned to a particular task same like Resource Assignment to a particular task.
How can i do this in Telerik Gantt Chart For MVC ?
13 Answers, 1 is accepted
I am not quite sure that I had fully understood the scenario that you aim to achieve. If you need to have multiple resources types. rendered in two columns for the Gantt - I am afraid that this is not supported. On the other hand, you can have different type of resources in the same table in your underlying data source (differentiated by a field). Hence, you would need to filter the resources, when such second button (for cars) is clicked.
Please let me know, if I had correctly understood your scenario.
Hey Nencho let me try to explain again.
resource assignment dialog is already given in the chart where the resources (employees) are shown and we assign the resource to a particular task.
same like that resources dialog box i want one more dialog box where i can show the (Cars) as separate resource (not including that data which is in the employee resource's dialogbox) to be assigned to a particular task as well ( like this task is assigned to this employee and this car is assigned to this task as well).
I have prepared a sample example for you, where such functionality is implemented. The example consist of the following steps:
1. Append a second button for the Cars dynamically, when the onEdit event is triggered
2. Subscribe for the click event of both buttons (the original Assign and the Cars)
3. Implement the filter of the Resources data source for each button click, in order to have the different items displayed for the different buttons.
The example is targeting the record "Thomas Hardy". It is not present in the Assign resources, but it is the one for the Cars resources. In your scenario, you will be able to filter the DataSource meaningful and achieve the needed result.
Hope this would help.
Thankyou Necho for reply.
but in your sample I can select resource from one dialog box at a time. "Thomas Hardy" was selected from Cars dialog box. when i selected another resource from Assign dialog box. "Thomas Hardy" was unassigned and newly assigned resources was showing
i want to keep and show the resources from both the dialog boxes.
kindly modify the Dojo please
more with it i m returning both Cars and Resources from ReadResource action.and both has a TYPE that differentiate that it is Car and Resource.
from this datasource i want to load both dialog boxes Resource and Cars. how i'll load both the dialog boxes? by filtering it's a Resource and it's a Car. where i'll separate them. kindly update the dojo as soon as possible :(
i think you're too busy to reply
let me explain what is exactly happening with the dojo sample example and things need to be changed.
when the chart is loaded at 1st. suppose i already have one Assigned Resource coming from Database for a particular task. now when i open the Cars dialog box and select one Car for that task and save the task then that Assigned Resource which came from database will get deleted from database. DestroyAssignment call is sent to server after saving and then CreateAssignment call is sent to the server. i dont want to delete assigned resources from the Assign dialogbox while selecting from Car dialog box.
One more thing i want to mention in it. if I check one more Resource in Assignment Dialog box. and close this dialog box and reopen it then that recently checked resource will be unchecked. ( Vice Versa with the Car dialog box) it should be checked after reopening.
As initially described the Gantt does not support two type of resources. This is why this solution was suggested, however, the team which can help you best in such custom oriented solution, which are not supported by design are the Professional Services team. If you are interested, you can let me know and I will connect you with the team in question.
one more thing i want to mention is i want to show the Cars in a separate column at the tree side where the Assigned Resources are shown,with the column of Assigned Resource i want to have a column Assigned Cars where the car will be shown.
can you please provide these in a Dojo example Nencho ?
The previously provided example is the farthest that could be achieved with the build-in functionality of the Gantt. The desired functionality could be achieved entirely, but the team that can help you best in such custom implementations is the Professional Services team, which includes a separate service.
from where can i get into touch with professional services team ?
For that purpose you would need to be an active licence holder, because most of the time the such customization are applied on the source code of our product. Once having an active licensee, we can directly connect you with the respective team, in order to discuss the needed functionalities in details and so that the corresponding fees are discussed.