One More Dialog Like Resources

14 posts, 1 answers
  1. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 01 Jan Link to this post

    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

  2. Nencho
    Admin
    Nencho avatar
    1772 posts

    Posted 03 Jan Link to this post

    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.
  3. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 03 Jan in reply to Nencho Link to this post

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

     

  4. Nencho
    Admin
    Nencho avatar
    1772 posts

    Posted 05 Jan Link to this post

    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.
  5. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 09 Jan in reply to Nencho Link to this post

    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

     

  6. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 09 Jan in reply to Nabil Link to this post

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

  7. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 10 Jan in reply to Nabil Link to this post

    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.

     

  8. Answer
    Nencho
    Admin
    Nencho avatar
    1772 posts

    Posted 10 Jan Link to this post

    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.
  9. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 10 Jan in reply to Nencho Link to this post

    can you please provide me a dojo example to this what i want?
  10. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 10 Jan in reply to Nencho Link to this post

    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 ?

  11. Nencho
    Admin
    Nencho avatar
    1772 posts

    Posted 12 Jan Link to this post

    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.
  12. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 13 Jan in reply to Nencho Link to this post

    thankyou Nencho.

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

  13. Nencho
    Admin
    Nencho avatar
    1772 posts

    Posted 16 Jan Link to this post

    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.
  14. Nabil
    Nabil avatar
    29 posts
    Member since:
    Dec 2017

    Posted 17 Jan in reply to Nencho Link to this post

    okay thankyou
Back to Top