Problems upgrading to 2009 Q2 SP1

5 posts, 0 answers
  1. Kevin
    Kevin avatar
    26 posts
    Member since:
    Apr 2009

    Posted 14 Aug 2009 Link to this post

    Hi I have just upgraded to SP1, removed the old references from my project and added the new ones but I now get the following unhandled exception when I open my main.xaml in VS2008

    '-17' is not a valid value for property 'ViewportSize'.  
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)  
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)  
       at System.Windows.Controls.Primitives.ScrollBar.set_ViewportSize(Double value)  
       at Telerik.Windows.Controls.GridView.ScrollBarStateController.UpdateScrollBar(ScrollBar scrollBar, ScrollBarProperties properties) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\ScrollBarStateController.cs:line 60  
       at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 503  
       at Telerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 534  
       at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()  
       at System.Windows.ContextLayoutManager.UpdateLayout()  
       at System.Windows.UIElement.UpdateLayout()  
       at System.Windows.Interop.HwndSource.SetLayoutSize()  
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)  
       at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)  
       at MS.Internal.Designer.DocumentOutline.ContentHolder.Initialize()  
       at MS.Internal.Designer.DocumentOutline.Intitalize()  
       at MS.Internal.Designer.DocumentOutline.get_ContentHolderControl()  
       at MS.Internal.Designer.DocumentOutline.get_Handle()  
       at MS.Internal.Designer.VSIsolatedViewFactory.VSIsolatedView.get_ViewHandle()  
       at MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle()  
       at MS.Internal.Host.Isolation.IsolatedViewHolder.SetContent(IsolatedView view)  
       at MS.Internal.Designer.DesignerPane.AttachDocumentOutline()  
       at MS.Internal.Designer.DesignerPane.LoadDesignerView()  
     
     

    Any advice?

    Thanks in advance,
    Kevin Preston.
  2. Kevin
    Kevin avatar
    26 posts
    Member since:
    Apr 2009

    Posted 15 Aug 2009 Link to this post

    Can someone please help out with this. I have looked everywhere for the 'ViewportSize' property but cant find it.

    I cant continue to develop with this resolved.

    Cheers,
    Kevin.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Missing user
    Missing user avatar

    Posted 17 Aug 2009 Link to this post

    Hi Kevin,

    We have already fixed a problem related to the ViewportSize (similar to the described one) which we had reproduced when the following preconditions were available:

    1. Window's SizeToContent="WidthAndHeight"
    2. RadGridView is wrapped in ScrollViewer with HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" properties set.
    3. RadGridView is bound to an empty itemsource
    4. RadGridView's property ColumnsWidthMode =Fill

    The fix will be available in our latest internal build(this Friday). But we still cannot be sure if this fix will fix the issues you have. That's why it would be best if it is possible to send us a small example where we can reproduce the problem.

    Sincerely yours,

    Anastasia
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 19 Aug 2009 Link to this post

    I am getting the same error after upgrading to SP1. I have a complicated setup however. I am using the hierarchical child grids. 

    My error is:'-2' is not a valid value for property 'ViewportSize'.

    The disassembly shows that the error occurs in

    c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs

    Thanks,

    Billy Jacobs

  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Aug 2009 Link to this post

    Hi Billy,

    You will be able to download the fixed version tomorrow!

    Best wishes,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WPF is Visual Studio 2017 Ready