Select a task via code

2 posts, 0 answers
  1. Colin
    Colin avatar
    5 posts
    Member since:
    Dec 2012

    Posted 10 Apr Link to this post

    I am using my own pop-up dialog window for adding/editing tasks in the Gantt display.  Saving from this dialog causes a postback to the server and a redraw of the gantt chart.  I need to programmatically re-select the last task added/edited  (either server side or client side but preferably server side).

    Is there anyway to achieve this?

    Thanks.

  2. Colin
    Colin avatar
    5 posts
    Member since:
    Dec 2012

    Posted 10 Apr Link to this post

    Managed to get this working client side by accessing the Kendo widget part of the Gantt control.  Here's the code:

    function selectTask(tsk){

                var gantt = $find("<%= radGantt.ClientID%>");
                gantt._widget.select("tr:eq(" + tsk.get_id() + ")");
            }

Back to Top