Updating PeriodStart and PeriodEnd

10 posts, 1 answers
  1. Darien
    Darien avatar
    3 posts
    Member since:
    May 2011

    Posted 11 May 2011 Link to this post

    Hello,

    I used the TimeBar  to visualize a datetime/count collection. It worked fine, but when I change the PeriodStart and PeriodEnd, the TimeBar stop showing the time in. Please, see attached image from a modified version of the TimeBar First Look example. I changed those values using OneWay.
    The user needs to choose the shown time span to see data from 2  to 8 past years, and to load all the data from the server can cause performance issues.
    Is this a problem with the TimeBar control or there is a better way of changing to shown time span?

    Thank you in advance,

    Darien
  2. Paul Lewis
    Paul Lewis avatar
    31 posts
    Member since:
    Jan 2010

    Posted 11 May 2011 Link to this post

    I was just about to post about this same thing.

    I dont know how long my data will be so i want to update the periods when i get them form the server I have tried the following and get the same result as the picture above.  If i use static dates it shows my data but buts the wrong date against it e.g. data from today appears as the 30 my if i set that as my end


    void svc_GetAllWebsiteHitsByDayCompleted(object sender, DataSvc.GetAllWebsiteHitsByDayCompletedEventArgs e)
    {
             
        if(e.Error == null)
        {
            timeBar1.PeriodStart =  e.Result.Min(p => p.VisitDate) ;
            timeBar1.PeriodEnd = e.Result.Max(p => p.VisitDate) ;
             timeBar1.VisiblePeriodEnd = e.Result.Max(p => p.VisitDate);
           timeBar1.VisiblePeriodStart = e.Result.Min(p => p.VisitDate);
     
            //tried this as well Button didnt make a difference
           // timeBar1.UpdateLayout();
            Spark.ItemsSource = e.Result.OrderBy(p=> p.VisitDate).ToList();
        }
     
    }
  3. DevCraft banner
  4. Paul Lewis
    Paul Lewis avatar
    31 posts
    Member since:
    Jan 2010

    Posted 16 May 2011 Link to this post

    any ideas how we would do this?

    thanks
  5. Darien
    Darien avatar
    3 posts
    Member since:
    May 2011

    Posted 16 May 2011 Link to this post

    Hi Paul,

    It seems to be a bug inside the TimeBar control. I placed a support ticket, and the Telerik team is working on the fix. It is not fixed on the current released hotfix (v2011.1.510.1040).

    I will post the release number that has the fix when I get it from the Telerik team.

    Thank,

    Darien
  6. Missing user
    Missing user avatar

    Posted 16 May 2011 Link to this post

    Hello,

    Оur developers addressed and fixed it. The fixed version will be available in the internal build next Monday. It will be also included in the next official release.

    Regards,
    Polina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Paul Lewis
    Paul Lewis avatar
    31 posts
    Member since:
    Jan 2010

    Posted 16 May 2011 Link to this post

    Excellent many thanks I cant wait to try this control it looks great
  8. KO
    KO avatar
    16 posts
    Member since:
    Apr 2010

    Posted 25 May 2011 Link to this post

    Any news on which release this fix will be in? I didn't see anything about it in the 2011.1.0516 release notes...

    Thank you, KO

  9. Darien
    Darien avatar
    3 posts
    Member since:
    May 2011

    Posted 25 May 2011 Link to this post

    Hi KO,

    The release 2011.1.516 still has the problem. I had access to 2011.1.518, and it worked perfect. That release should be available by the end of this week, or on Monday at latest based on the information I have from Telerik Support team.

    Best regards,

    Darien
  10. Paul Lewis
    Paul Lewis avatar
    31 posts
    Member since:
    Jan 2010

    Posted 25 May 2011 Link to this post

    any chance we can get access to the internal build? I got my admin to check our account and its not there yet
  11. Answer
    Missing user
    Missing user avatar

    Posted 27 May 2011 Link to this post

    Hello,

    The version of the LIB, which includes the fix, is 2011.1.0526 and it is already available. When the license holder logs into our site, in the right column of "Your Account" page, should appear a link "Internal Builds Download" from where it can be downloaded.

    All the best,
    Polina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner