Custom Edit Task Page

6 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    Sep 2013

    Posted 17 May 2015 Link to this post

    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.

     

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 20 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Minculescu
    Minculescu avatar
    5 posts
    Member since:
    Jun 2012

    Posted 25 May 2015 in reply to Nencho Link to this post

    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

  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 28 May 2015 Link to this post

    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
  6. Minculescu
    Minculescu avatar
    5 posts
    Member since:
    Jun 2012

    Posted 29 May 2015 in reply to Nencho Link to this post

    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

     

  7. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 03 Jun 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017