Declined
Last Updated: 03 Jul 2017 07:31 by ADMIN
Maciej
Created on: 02 Jun 2017 12:42
Category: TimeBar
Type: Bug Report
1
RadTimeBar - title is incorrect (SelectionTitleFormatString)
When SelectionEnd is equal to PeriodEnd, and PeriodEnd is at midnight (00:00:00), then selection title shows incorrect selection end.

To reproduce consider the following xaml:
    <telerik:RadTimeBar PeriodStart="1-Jan-2010 12:00:00 AM" 
                        PeriodEnd="31-Dec-2011 00:00:00 AM"
                        
                        SelectionStart="1-Jan-2010 12:00:00 AM" 
                        SelectionEnd="31-Dec-2011 00:00:00 AM"
                        
                        SelectionTitleFormatString="{}{0} - {1}"
                        />

PeriodEnd == SelectionEnd == 31-Dec-2011 00:00:00 AM, but title is: "01/01/2010 00:00:00 - 30/12/2011 23:59:59"

As in our app we display date with "dd MMM yyyy" format, the displayed selection end differs by one day from the real one, which is a serious issue.


1 comment
ADMIN
Martin
Posted on: 03 Jul 2017 07:31
Hello Maciej

Thank you for sharing this scenario with us.

The described behavior is expected and it comes from the timebar selection design. Basically, the selection end is excluded for the selection interval. So, the actual end will be the selection end minus a single tick. You can read a bit more about this in the following Telerik forum (http://www.telerik.com/forums/timebar-selectionend-off-by-a-day#ATDkFoVAaUeqBTeUMNjRmA).

Best Regards,
Martin Ivanov
the Telerik Team