Infinity is not a valid value for the property Width

5 posts, 0 answers
  1. sum sum
    sum sum avatar
    21 posts
    Member since:
    Nov 2009

    Posted 23 Nov 2009 Link to this post

    Hi Guys,

    When I drag the nodes in the treeview, it displays "Infinity is not a valid value for the property Width". What caused this error?

    Thanks,

  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 24 Nov 2009 Link to this post

    Hello Sum,

    Unfortunately this is a know regression the Q3 version of the TreeView.

    It happens when the TreeView is placed in a ScrollViewer or in an auto-sizing column of a Grid and the in between items drag cue has to appear.

    This is fixed in the latest weekly internal build and it will work as expected for the Service Pack.

    This article describes the problem for the Silverlight TreeView but the same issue is present in WPF as well (look for item 2.1.):

    http://www.telerik.com/support/kb/silverlight/treeview/treeview-q3-changes.aspx

    I am sorry for the inconvenience.

    Sincerely yours,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Lauren Nickerson
    Lauren Nickerson avatar
    52 posts
    Member since:
    Jul 2009

    Posted 04 Dec 2009 Link to this post

    Hi, I have the same problem with WPF. Can you pinpoint me to the solution?

    EDIT: Nvm, just noticed it works for WPF too.

    EDIT 2:

    Although this prevents the error from happening, the problem is not completely gone away. If I set the MaxWidth to 500 and the container's current width is 200, when the line to show where the item is going to drop, it makes the container expand to its max width, which is a really weird behavior to just overlook it. Is there a solution for this as well?

    Thank you.
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 Dec 2009 Link to this post

    Hi Lauren Nickerson,

    The Service Pack for the controls is expected in the middle of next week. I hope that you will be able to wait for it so that no workarounds for this issue will be needed.

    The ControlTemplate of the TreeView could be edited to change the InBetweenDragCue but this will be unnecessary in a couple of days.

    I am sorry for the inconvenience that this issue may have caused you.

    Sincerely yours,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Lauren Nickerson
    Lauren Nickerson avatar
    52 posts
    Member since:
    Jul 2009

    Posted 21 Dec 2009 Link to this post

    Hello, thanks for the response. Where can I find said Service Pack?

    Thanks.

    Edit: Found it, thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready