Keep gantt state after full postback with javascript/jquery

2 posts, 1 answers
  1. Felix
    Felix avatar
    42 posts
    Member since:
    Sep 2014

    Posted 20 Mar 2015 Link to this post

    Hello,

    how is it possible to keep the selected view, the width of the list inside the gantt and the scroll position of the list inside the gantt control after a full postback happens. Additionally I want to know how to select the new task inside the gantt control if the user clicks "Add Task" and a postback (not a callback) happens. I know how to keep the selection of a task after a postback but I want to select the new task after a postback happens. I hope you can help me.

    Regards,
    Felix
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 24 Mar 2015 Link to this post

    Hello,

    Preserving the specified properties across postbacks is on our TODO list for the next official release. At the moment you can use the public API to set the selected view upon page load.

    As for the selection of the newly created appointment, you can reuse the logic you already have for preserving the selection, but passing the ID of the new appointment from the server. This can be done for instance with a hidden field, where you store the ID of the new appointment.

    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top