Telerik Forums
UI for WPF Forum
1 answer
77 views

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.

 






Dilyan Traykov
Telerik team
 answered on 21 Jan 2022
6 answers
207 views

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

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Oct 2019
1 answer
263 views
I have a RadTimeSpanPicker with some Binding validation implemented. I want to immediately show the validation tooltip if a binding validation error occurs (see attached screenshot).  Currently, the tooltip only shows when the mouse hovers over the upper right corner.  However, this corner is so small it's difficult to position the mouse over it to see the error message.  How do I immediately display this tooltip when the error is detected?
Vladimir Stoyanov
Telerik team
 answered on 29 Aug 2018
2 answers
45 views

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

Martin
Top achievements
Rank 2
 answered on 16 Feb 2018
5 answers
98 views

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

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Sep 2017
1 answer
34 views

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!

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2017
0 answers
37 views

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

Sarathi
Top achievements
Rank 1
 asked on 05 Jun 2017
1 answer
287 views

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?

Nasko
Telerik team
 answered on 05 Apr 2016
3 answers
221 views

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"

Nasko
Telerik team
 answered on 11 Mar 2016
1 answer
40 views

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.

Yana
Telerik team
 answered on 01 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?