Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1080
Problem with shrinking task and saving to database (Infragistics 13.2)
posted

Hello,


I have Gantt databinded to Mysql database. When I change task duration in timeline view, and try to save changes to database, task reset to its previous duration. All other changes works (moving task, editing in table), and saves to database. That's when I use Infragistics 13.2. But when i use 11.1, everything is working fine. Is this a bug in 13.2, or I am doing something wrong ?

Parents
  • 1080
    Offline posted

    Little update:

    I manage to create workaround, but I don't like it. So there is bug i 2013.2 with AllProperties Duration Member or there is a new property which couldn't be find in 2011.1, which I didn't set i 2013.2.

             private void ultraGanttView1_TaskElementDragComplete(object sender, Infragistics.Win.UltraWinGanttView.TaskElementDragCompleteEventArgs e)
            {
                 DataRowView view = e.Task.BindingListObject as DataRowView;
                 if (view != null)
                 {
                     Task MyTask = Task.FromBytes((byte[])view.Row["AllProperties"]);
                     if (MyTask != null)
                     {
                         MyTask.Duration = e.Task.Duration;
                         view.Row["AllProperties"] = MyTask.Save();
                         saveTasks();
                     }              
                 }
            }

Reply Children