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

Updating PeriodStart and PeriodEnd

9 Answers 104 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Darien
Top achievements
Rank 2
Darien asked on 11 May 2011, 02:26 PM
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

9 Answers, 1 is accepted

Sort by
0
Paul Lewis
Top achievements
Rank 1
answered on 11 May 2011, 02:45 PM
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();
    }
 
}
0
Paul Lewis
Top achievements
Rank 1
answered on 16 May 2011, 10:54 AM
any ideas how we would do this?

thanks
0
Darien
Top achievements
Rank 2
answered on 16 May 2011, 02:14 PM
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
0
Missing User
answered on 16 May 2011, 02:49 PM
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
0
Paul Lewis
Top achievements
Rank 1
answered on 16 May 2011, 07:20 PM
Excellent many thanks I cant wait to try this control it looks great
0
KO
Top achievements
Rank 1
answered on 25 May 2011, 02:37 PM
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

0
Darien
Top achievements
Rank 2
answered on 25 May 2011, 03:46 PM
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
0
Paul Lewis
Top achievements
Rank 1
answered on 25 May 2011, 04:08 PM
any chance we can get access to the internal build? I got my admin to check our account and its not there yet
0
Accepted
Missing User
answered on 27 May 2011, 04:35 PM
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
Tags
TimeBar
Asked by
Darien
Top achievements
Rank 2
Answers by
Paul Lewis
Top achievements
Rank 1
Darien
Top achievements
Rank 2
Missing User
KO
Top achievements
Rank 1
Share this question
or