Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Change the Parent Summary on SelectedItemChanged

$
0
0

Hi All

I have implemented the gantview in a test winforms application, and I am just wondering if someone can assist me.

On the View, I drag a Task (Child) Item, and thus changes the start or end date.

Now a very Basic need, is that the Summary (Parent) gets updated too.

Here is a toned down version:

void radGanttView1_SelectedItemChanged(object sender, GanttViewSelectedItemChangedEventArgs e)
{
    try
    {
             if (e.Item.End > e.Item.Parent.End)
             {    
                    e.Item.Parent.End = e.Item.End;

            } 

           if (e.Item.Start < e.Item.Parent.Start)
          {
              e.Item.Parent.Start = e.Item.Start;
         }
     }
   catch { }
}

(View1)

Now this "WORKS" in the sense that if I click off the selected child (View2) , and then back on to it, the  Summary does update (View3), but I need it to be immediately

 

Regards

 

Marius

 

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>