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

Clicking task causes auto-postback to re-load grid

1 Answer 16 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 10 Dec 2015, 03:26 PM

We have a gantt control on a web page that is using a custom provider. Our custom provider handles a project with various project tasks.

When I click on a task in the gantt provider I capture the id of the task via javascript and populate a form (div tag) and display it beneath my gantt control. 

 The problem I have is that a project could contain hundreds of tasks. If the user wants to select a task and then perhaps edit it and do this over for several other tasks it becomes time consuming. This is because clicking in the task list inside the gantt control causes all the code utilized to build the data for the control to be executed. (postback.. database call.. custom gantt provider dataType conversions.. etc..) Is there any way to prevent a complete regeneration of the gantt control when all I want to do is capture the id of the task selected and populate a <div> with the information about the task?

 

Thanks!

 

Julian

 

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 11 Dec 2015, 08:09 AM
Hi,

By default clicking on a task doesn't cause a postback and rebind of the gantt. Could you share any custom code that you've built around the gantt, that might be causing this?

Regards,
Bozhidar
Telerik
Tags
Gantt
Asked by
Julian
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or