Error: "Value does not fall within expected range" when adding RadTimeBar

5 posts, 0 answers
  1. Marcelo
    Marcelo avatar
    40 posts
    Member since:
    Jul 2011

    Posted 03 Jul 2013 Link to this post

    I get the following error when adding a RadTimeBar to an user control

    Error: "Value does not fall within expected range"

    I have the following Telerik references:

    Telerik.Windows.Controls
    Telerik.Windows.Controls.Chart
    Telerik.Windows.Controls.DataVisialization
    Telerik.Windows.Data

    I have the following name spaces:

     
    xmlns:charting="clr-namespace:Telerik.Charting;assembly=Telerik.Windows.Controls.Chart"
    xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
    xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart"


  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 08 Jul 2013 Link to this post

    Hello Marc,

    Simply adding a RadTimeBar instance to a user control does not lead to the exception you describe. That is why, I suppose there is something specific in your case that leads to the problem. Could you please prepare and send me a simple running project, demonstrating the exception?

    Regards,
    Tsvetie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Marcelo
    Marcelo avatar
    40 posts
    Member since:
    Jul 2011

    Posted 08 Jul 2013 Link to this post

    Hello Tsvetie and thank you for the reply. I am afraid I can't just send you the SLN but let me see if the following helps a bit more.

    Look at the attached images please

    good.jpg it is a user control with a Calender control

    The moment I add the Time Bar control (shown in bad.jpg) I instantly get the error.

    I hope this helps you point me in the right direction,

    Thanks,

  5. Marcelo
    Marcelo avatar
    40 posts
    Member since:
    Jul 2011

    Posted 10 Jul 2013 Link to this post

    This is what I have been able to figure out so far...

    (1) If I add the reference (Telerik.Windows.Controls.DataVisualization) by hand (right click => Add Reference) I get the error described.

    (2) If I delete the reference and drag and drop the control (RadTimeBar) from the toolbox works.

    But here is the visual difference:

    On (1), the reference name reads Telerik.Windows.Controls.DataVisualization

    On (2), the reference name reads telerik.windows.controls.datavisualization (notice that it is all lower case)

    When I check the Properties window, all the values for these two are the same, except the Name property thay shows the capitalization described above.

    BTW, I am using 2013 Q1 (2013.1.403.1050)
  6. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 11 Jul 2013 Link to this post

    Hello Marc,

    You are the first client to report such problem and unless I am able to research the problem locally, there is not much that I can do. I have attached a test project, in which I added references to 2013 Q1 (2013.1.403.1050) DLLs manually and the project works as expected. Could you please modify this project so that it reproduces the problem and send it back to me in a new support ticket?

    Regards,
    Tsvetie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner