BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
|
Query |
Solution |
1 |
Gantt chart for individual projects are meant to be seen access through URL e.g. /tasks/projectId=2. Now I want to associate new tasks with the project (project id). |
Using Load action method add non-default columns at the load time. columns.splice(0, 0, { field: "ProjectId", headerText: "ProjectID", mappingName:"ProjectId", columnTemplate: true, templateId: "columnTemplate", width: "200px" |
2 |
Is there a cleaner way to achieve this i.e. using the Query property (I have done this with links girds etc, but having trouble with Gantt), so in the corresponding Add & Update controller methods other than viewmodel object an additional parameter (e.g. projectId) could be passed on. |
By using ajax post, we can Add or Update Controller methods. $.ajax({ type: "POST", url: "/Gantt/Add data: ganttRecord, ataType: "json" |
3 |
Show additional properties I believe you can use .AddDialogFields() .EditDialogFields() methods to show the non-default fields, however how can you keep the original fields while adding new fields to the bottom of the add/edit task dialog. |
Once we add non-default columns at the load time then no need to use in AddDialogFields or EditDialogFieds method. When add new fields then it will dynamically add to the bottom of the original fields in add/edit dialog |