Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Scheduleview change view definitions time format programmatically

$
0
0

Hi,

 I want to change RadScheduleView 's ViewDefinitions TimerulerMajorTickStringFormat to current thread culture time format string. i tried setting this in code behind and by using convertor, in both approach it gives exception "Input String is not in a correct format", but i used hard coded which works in xaml file.

  in xaml,

<telerik:DayViewDefinition
x:Name="DayViewDefination"TimerulerMajorTickStringFormat="{}{0:HH}:{0:mm}"/>

below code snippet tried end of the view's constructor (after initializing component) and even before that, no luck

this.DayViewDefination.TimerulerMajorTickStringFormat = "{}{0:HH}:{0:mm}";
 

Could you please help me.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>