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

Keep gantt state after full postback with javascript/jquery

1 Answer 66 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 20 Mar 2015, 12:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 24 Mar 2015, 09:01 AM
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
Tags
Gantt
Asked by
Felix
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or