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

Custom Edit Task Page

5 Answers 84 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 17 May 2015, 10:21 AM

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

Sort by
0
Nencho
Telerik team
answered on 20 May 2015, 10:43 AM
Hello Chris,

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
0
Minculescu
Top achievements
Rank 1
answered on 25 May 2015, 02:06 PM

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

0
Nencho
Telerik team
answered on 28 May 2015, 01:28 PM
Hello 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
0
Minculescu
Top achievements
Rank 1
answered on 29 May 2015, 02:05 PM

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

 

0
Nencho
Telerik team
answered on 03 Jun 2015, 10:50 AM
Hello Minculescu,

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
Tags
Gantt
Asked by
Chris
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Minculescu
Top achievements
Rank 1
Share this question
or