Unplanned
Last Updated: 20 Mar 2024 06:49 by Nagasandeep
Nagasandeep
Created on: 20 Mar 2024 06:49
Category: Gantt
Type: Feature Request
1
Create an easy way to include new fields in the Other editing tab

Currently, the Gantt allows full customization of its Editing popup:
https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/configuration/editable.template

But I need to a built-in way to include a new field input only in the Other tab view:

Workaround provided by support team:

.Events(e=>e.Edit("ganttEdit"))
JS:
<script>
    function ganttEdit(e){
       var tabstrip = 
       e.container.find(".k-gantt-edit-tabstrip").data().kendoTabStrip;
       tabstrip.bind("activate",function(args){
           if(args.item.textContent == "Other")
           {
              var otherForm = $(".k-gantt-form-other").data().kendoForm;
              var newOptions = otherForm.options;
              
              if(newOptions.items.length < 3)
              {
              newOptions.items.push({
                "field": "Role",
                "type": "string",
               "defaultValue": ""
               });

              otherForm.setOptions(newOptions);
              }
           }
       })
    }
</script>


0 comments