2

Closed

Updating TimelineBands from code

description

I checked out the newest SVN version and updated my old changes ( http://timeline.codeplex.com/WorkItem/View.aspx?WorkItemId=5331 ). The best way I found so far is by adding the following method to the TimelineTray class.
 
public void ReloadTimeBands()
   {
        if (m_loaded)
        {
            if (m_bands.Count > 0 && m_mainBand != null)
            {
                // we are in silverlight mode, so all bands and urls are specified in 
                // xaml and we can start data load immediately
                m_isJavascriptMode = false;
 
                m_notifier = new DataControlNotifier(m_dataUrls, m_bands);
                m_notifier.LoadComplete += OnControlAndDataComlete;
                m_notifier.Start();
                m_notifier.CheckCompleted();
            }
        }
    }
 
As I receive my events I do the following:
  1. calc and set min/maxtimes, windowSize, souceType to the TLT
  2. add my events using TLT.ResetEvents(myEventList)
  3. I call my method to update the state of the individual bands
     
    Is there an other easy way I overlooked? I did search for a way to set events using the DataControlNotifier but didn't find one. I think that would be the most logical step to load events later as well.

file attachments

Closed Mar 26, 2010 at 2:05 PM by andrewsyrov
by design

comments

andrewsyrov wrote Mar 22, 2010 at 8:30 PM

I think your way is correct. If you want I can apply your patch (please attach).

wrote Mar 23, 2010 at 7:17 AM

wrote Mar 26, 2010 at 2:05 PM

marcmenghin wrote Mar 29, 2010 at 2:30 PM

patch for this change

wrote Mar 29, 2010 at 2:30 PM

wrote Feb 21, 2013 at 11:09 PM

wrote May 16, 2013 at 10:49 AM