This is a migrated thread and some comments may be shown as answers.

RadTimeSpanPicker Format Exception

2 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 16 Aug 2012, 07:19 AM
Hello,

I wanted to try the new RadTimeSpanPicker. But always when I selected a Timespan or set the value Property manually, I get a Format Exception with message "Input string was not in a correct format."

StackTrace:
at System.Globalization.TimeSpanFormat.FormatCustomized(TimeSpan value, String format, DateTimeFormatInfo dtfi)
at System.Globalization.TimeSpanFormat.Format(TimeSpan value, String format, IFormatProvider formatProvider)
at System.TimeSpan.ToString(String format)
at Telerik.Windows.Controls.RadTimeSpanPicker.ComposeValueString()
at Telerik.Windows.Controls.ValuePickerControl.UpdateValueString()
at Telerik.Windows.Controls.RadTimeSpanPicker.OnOkButtonClicked()
at Telerik.Windows.Controls.ValuePickerControl.AppBarInfoButtonClick(Object sender, ApplicationBarButtonClickEventArgs e)
at Telerik.Windows.Controls.ApplicationBarInfo.OnButtonClick(ApplicationBarButtonClickEventArgs e)
at Telerik.Windows.Controls.ApplicationBarInfo.OnPhoneButton_Click(Object sender, EventArgs e)
at Microsoft.Phone.Shell.ApplicationBarItemContainer.FireEventHandler(EventHandler handler, Object sender, EventArgs args)
at Microsoft.Phone.Shell.ApplicationBarIconButton.ClickEvent()
at Microsoft.Phone.Shell.ApplicationBarIconButtonContainer.ClickEvent()
at Microsoft.Phone.Shell.ApplicationBar.OnCommand(UInt32 idCommand)
at Microsoft.Phone.Shell.Interop.NativeCallbackInteropWrapper.OnCommand(UInt32 idCommand)

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 16 Aug 2012, 02:54 PM
Hello Martin,

Thanks for writing and for reporting this issue.

We are aware of it and it has already been addressed in our internal codebase. We will be releasing an Internal Build next week containing the fix. You will be able to download this build from your Telerik account.

Here's a quick tip on how to workaround this issue:

1. Set the DisplayValueFormat as follows:
DisplayValueFormat="hh\:mm\:ss"

Let me know in case you need further assistance here.

Regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Martin
Top achievements
Rank 1
answered on 16 Aug 2012, 03:03 PM
Hello,

thanks for you reply. Your workaround solves the problem.
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Martin
Top achievements
Rank 1
Share this question
or