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

One More Dialog Like Resources

13 Answers 56 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Nabil
Top achievements
Rank 1
Nabil asked on 02 Jan 2018, 05:47 AM

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

Sort by
0
Nencho
Telerik team
answered on 03 Jan 2018, 12:03 PM
Hello Nabil,

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.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 03 Jan 2018, 02:19 PM

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).

 

0
Nencho
Telerik team
answered on 05 Jan 2018, 12:16 PM
Hello Nabil,

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. 

http://dojo.telerik.com/@nenchef/AfotO/8

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.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 09 Jan 2018, 07:15 AM

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

http://dojo.telerik.com/@nenchef/AfotO/8

 

0
Nabil
Top achievements
Rank 1
answered on 09 Jan 2018, 12:15 PM

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 :(

0
Nabil
Top achievements
Rank 1
answered on 10 Jan 2018, 06:53 AM

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.

 

0
Accepted
Nencho
Telerik team
answered on 10 Jan 2018, 01:38 PM
Hello Nabil,

Your observations are correct and the functionality is not fully achieved. You can, however, store the currently assigned resources in a variable array. The currently assigned resources can be access trough the resources object of the task : https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt#configuration-resources. Then, you can update the assigned resources, by adding the stored in the local array resources to the ones that are assigned trough the popup.

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.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 11 Jan 2018, 04:48 AM
can you please provide me a dojo example to this what i want?
0
Nabil
Top achievements
Rank 1
answered on 11 Jan 2018, 05:30 AM

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 ?

0
Nencho
Telerik team
answered on 12 Jan 2018, 08:15 AM
Hello Nabil,

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.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 13 Jan 2018, 05:27 PM

thankyou Nencho.

from where can i get into touch with professional services team ?

0
Nencho
Telerik team
answered on 16 Jan 2018, 05:01 PM
Hello Nabil,

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. 

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 17 Jan 2018, 06:18 AM
okay thankyou
Tags
Gantt
Asked by
Nabil
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Nabil
Top achievements
Rank 1
Share this question
or