Hi,
I used RadTimeSpanPicker, but I got a situation where I also needed a date.
So I want to use RadDateTimePicker as in the picture,
But with the RadTimeSpanPicker clock and not with the clock that RadDateTimePicker has.
I would be happy to help if this can be done and how
Thank you.
Hello,
I was wondering if there is any way to set up a TimeSpanPicker so that negative values can be provided?
I tried setting the "Minimum" option on the components to a negative value, but it seems this isn't respected and the minimum remains at 0.
Any help would be appreciated
Cheers
Hello there,
I am using the TimeSpanPicker within a ListBox ItemTemplate. I am changing the watermark. This works prefectly outside the template but when in a template does not work at all , my string is ignored and the default is used. I have also tried to use DynamicResource but found the same issue.
I have made a very simple project which highlights the issue, it uses the latest UI for WPF from the website.
It can be found here : https://www.dropbox.com/s/3ijhj346w0pjg1f/Telerik%20bug.zip?dl=0
Also attached a screenshot showing the program running.
Thanks,
Martin
How can I change the foreground color of the TimeSpanPickerComponent?
I've tried customizing my own RadTimeSpanPicker but unable to go pass the ItemsControl in the XAML (which contains a list of RadTimeSpanPickerComponents, e.g. hour/min/sec/etc picker, but not exposed via copied template.
-----------------------------------------
<telerik:RadDropDownButton x:Name="PART_DropDownButton"
. . .
>
<telerik:RadDropDownButton.DropDownContent>
. . .
<ItemsControl
ItemContainerStyle="{TemplateBinding TimeSpanComponentStyle}"
Foreground="Red"
Padding="3,0" Focusable="False"
>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<DockPanel Background="Transparent" IsItemsHost="True"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
---------------------------------------
I've also tried to set the Foreground via TimeSpanComponentStyle
TimeSpanComponentStyle="{DynamicResource TimeSpanComponentStyle1}"
I'd appreciate some assistance. Thanks.
-Elon
How to change the foreground of the TimeSpanPickerComponent?
I've tried custom Template (via Edit a Copy) and TimeSpanComponentStyle. None of them works.
Need assistance.
Thanks!
I'm using MinuteTimeSpan Component in TimeSpan Picker. it takes value as 00 when i select 60.
how to select 60 minutes as it is.
Thanks,
Sarathi
Hi Telerik,
I really like how the TimeSpanPicker has a "StringFormat" property on it, but I'm having challenges getting it to do what I want.
I want the selected timespan to show as:
"x Days and y Hours".
StringFormats like the following aren't working:
{0:d} Days and {0:h} Hours
Can you please help me out? what do I need to do to make it show the way I want it to?
I am working through your documentation and am trying to get the 2nd TimeSpanPicker working.
<telerik:RadTimeSpanPicker x:Name="Duration" Value="{Binding SelectedDuration, Mode=TwoWay}"...
My implementation (different source & different name):
<
telerik:RadTimeSpanPicker
Grid.Row
=
"1"
x:Name
=
"Duration"
Value
=
"{Binding SelectedDuration, Mode=TwoWay}"
StringFormat
=
"hh\:mm' hours'"
TimeSpanWatermarkContent
=
"Select duration..."
>
<
telerik:RadTimeSpanPicker.TimeSpanComponents
>
<
wpf:TimeSpanDurationComponent
ItemsSource
=
"{Binding Durations, Mode=OneWayToSource}"
Header
=
"Minutes"
/>
</
telerik:RadTimeSpanPicker.TimeSpanComponents
>
</
telerik:RadTimeSpanPicker
>
I added the DurationTimeSpanComponent (wpf.TimeSpanDurationComponent) and have the Durations collection on my MV.
However, I get this error during runtime:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Durations; DataItem=null; target element is 'TimeSpanDurationComponent' (HashCode=46098163); target property is 'ItemsSource' (type 'IEnumerable')
Your example includes that control is a container. Is that important?
What I see is that you include a namespace that doesn't seem to be part of my install. When I attempt to set this xmlns I don't have it as an option. And, when I go to add a reference this is not part listed. Is the documentation bad? Is this QuickStart namespace supposed to be part of most common implementations?
xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common"
My program needs to display a TimeSpan with days expressed in hours. For example,take the following TimeSpan:
var someTimeSpan = TimeSpan.FromHours(50);
The RadTimeSpanPicker displays the value and allows it to be edited in this format:
2.2:00:00
However, I need it to display the value and allow it to be edited in this format:
50:00:00
I grant that the way this is done out of the box is the way most would want it, and that I am asking for something special.