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

Custom StringFormat

$
0
0
Hello Tony,

You need to set the following StringFormat in order to make the timespan visualize as expected:
<telerik:RadTimeSpanPicker x:Name="Duration"
                        Value="{Binding SelectedDuration, Mode=TwoWay}"
                        StringFormat="d' Days and 'h' hours'"
                        TimeSpanWatermarkContent="Select duration..." >
    <telerik:RadTimeSpanPicker.TimeSpanComponents>
        <telerik:DayTimeSpanComponent/>
        <telerik:HourTimeSpanComponent/>
        <telerik:MinuteTimeSpanComponent/>
        <telerik:SecondTimeSpanComponent/>
        <telerik:MillisecondTimeSpanComponent/>
    </telerik:RadTimeSpanPicker.TimeSpanComponents>
</telerik:RadTimeSpanPicker>

Hope this helps.

Regards,
Nasko
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.

Viewing all articles
Browse latest Browse all 78072

Latest Images

Trending Articles



Latest Images

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