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

Intervals not showing

3 Answers 107 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 10 Mar 2020, 11:10 PM

Fairly new, and I hope this isn't a dumb question, but...

When I create a RadTimeBar by its lonesome, and bind values to the PeriodStart/End, SelectionStart/End everything works as expected. If I use it in a ItemTemplate in a RadListBox, intervals no longer show.

Any ideas?

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Bryan
Top achievements
Rank 1
answered on 12 Mar 2020, 04:56 PM

Bump.....

 

Anyone?

0
Dinko | Tech Support Engineer
Telerik team
answered on 13 Mar 2020, 09:40 AM

Hi Bryan,

Thank you for your interest in our RadTimeBar control.

The most common reason behind this is that the binding fails. Can you double-check the Output of VS for binding errors? If such exist, you can double-check which view model holds the properties which the PeriodStart/End, SelectionStart/End of the TimeBar are bound for. If not, can you share how you have set-up the RadTimeBar control and the ITemTemplate of the RadListBox? Also, it is possible to isolate this behavior in a standalone project so I can debug it on my side?

Regards,
Dinko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Bryan
Top achievements
Rank 1
answered on 16 Mar 2020, 02:32 PM

Thanks for the reply

 

Actually the binding was working fine. The problem was that the RadListBoxItem is measuring the RadTimeBar with infinity, and therefore had no context for sizing the intervals. I bound the Width of the item template to the ActualWidth of the parent object, and now they are showing as expected.

Again thanks for the help!

 

 

Tags
TimeBar
Asked by
Bryan
Top achievements
Rank 1
Answers by
Bryan
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or