Hello all,
Is it possible to display a custom "Edit task" page?
For example: I would like to either :
1. Display my own modal popup "Edit Task" page to capture lots of extra task information, save it to the database (using a custom provider ) and then refresh the Gantt task line, or
2. On double click, navigate to a custom "Edit Task" page, then on "Save" go back to the Gantt page.
Chris.
5 Answers, 1 is accepted
Yes, it is possible. For the sake of the implementation, you can use the RadWindow control. In its ContentTemplate, you can add the textboxes and pickers, corresponding to the fields that you need to display for modification.
The update of the Task object with the modified data could be achieved at the Save button click of this window. And the modification itself should be achieved, passing an array of the fields and their new values to the Task.
I have prepared a sample project for you using EntityFramework provider, demonstrating this implementation. Please note the OnClientClicked client-side event function of the Save button, where the update is implemented. The demonstrated approach could be applied on custom fields also.
Regards,
Nencho
Telerik
Hello Nencho,
Can you please update the sample so it includes code for the delete and cancel buttons too? We also use resources, so I would need the javascript for that too (the documentation is not very complete for this control, so I can't figure out what functions should I call on delete, assign resources...)
Regards,
Angela
I am afraid that currently custom implementation of the Resource Assignments is not possible. However, I have updated the previously provided runnable sample, implementing the deletion of the currently edited Task. As for the cancellation - when the cancel button in the edit window is hit, the form gets closed and the editing process is terminated.
Regards,
Nencho
Telerik
Hello Nencho,
Thank you for the sample. I tested it and it works as expected when the tasks have no dependencies between then, but it does not delete the task when it has some dependency (or a parent has a dependency).
Regards,
Angela
In the attachment you can find only the Default.aspx page, where the implementation is applied. Please keep in mind that the Client API of the control will be enhanced in feature releases, therefore, the needed implementation for the desired scenario could be significantly decreased (in regards to the needed code).
Regards,
Nencho
Telerik