RadTimeSpanPicker Format Exception

Thread is closed for posting
3 posts, 0 answers
  1. Martin
    Martin avatar
    6 posts
    Member since:
    Apr 2009

    Posted 16 Aug 2012 Link to this post


    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."

    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. Deyan
    Deyan avatar
    2147 posts

    Posted 16 Aug 2012 Link to this post

    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:

    Let me know in case you need further assistance here.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Martin
    Martin avatar
    6 posts
    Member since:
    Apr 2009

    Posted 16 Aug 2012 Link to this post


    thanks for you reply. Your workaround solves the problem.
Back to Top