Flow Direction

5 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    7 posts
    Member since:
    Aug 2012

    Posted 12 Sep 2013 Link to this post

    When I use a culture that have "RightToLeft" flow direction then is the hour and minute boxes are switched.
    this is not right! how can I changed this? the property "FlowDirection" don't change this.

    I attached 4 screenshot the date/time_wrong a telerik control and the date/time_correct are WP native controls.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 13 Sep 2013 Link to this post

    Hello,

    Thanks for writing and for reporting this. The reason for this behavior is that the separate looping selectors are put in a layout panel which also reacts to the changes of the Flow Direction. You can easily change the position of the looping selectors for both RadDate- and RadTimePicker by setting the SelectorFormat property as described here:

    For RadDatePicker: http://www.telerik.com/help/windows-phone/raddatepicker-features-formatting.html, see the Selector section

    For RadTimePicker: http://www.telerik.com/help/windows-phone/radtimepicker-features-formatting.html, again see the Selector section

    I hope this helps.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Sebastian
    Sebastian avatar
    7 posts
    Member since:
    Aug 2012

    Posted 13 Sep 2013 Link to this post

    Hi Deyan,

    I forgot to say that I allready try this, but this changed nothing.
    I have uploaded a test app. Please set your culture for example to Hebrew (he-IL) then you will see what I mean.
    http://www.yobibyte.de/phoneapp1.zip

    Regards
    Sebastian
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 18 Sep 2013 Link to this post

    Hi Sebastian,

    I've actually found an easier approach of solving this. You can simply set the FlowDirection of the Time Selector control that is displayed in the TimePicker popup to LeftToRight and get the desired behavior:

    <telerikInput:RadTimePicker OkButtonIconUri="/Assets/AppBar/check.png" CancelButtonIconUri="/Assets/AppBar/close.png" Grid.Column="1" x:Name="StartTime" Value="{Binding StartDate, Mode=TwoWay}" PopupHeader="{Binding Path=LocalizedResources.HeadSelectTime, Source={StaticResource LocalizedStrings}}">
                 <telerikInput:RadTimePicker.SelectorStyle>
                     <Style TargetType="telerikInput:RadTimeSelector">
                         <Setter Property="FlowDirection" Value="LeftToRight"/>
                     </Style>
                 </telerikInput:RadTimePicker.SelectorStyle>
             </telerikInput:RadTimePicker>

    I hope this helps.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Sebastian
    Sebastian avatar
    7 posts
    Member since:
    Aug 2012

    Posted 18 Sep 2013 Link to this post

    Hi Deyan,

    this is working great. 

    Thanks for you help.
    BR
    Sebastian
Back to Top
DevCraft banner