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

Problems upgrading to 2009 Q2 SP1

4 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 15 Aug 2009, 03:01 AM
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.

4 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 15 Aug 2009, 11:35 PM
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.
0
Missing User
answered on 17 Aug 2009, 03:40 PM

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.
0
StevenDale
Top achievements
Rank 2
answered on 19 Aug 2009, 09:14 PM
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

0
Vlad
Telerik team
answered on 20 Aug 2009, 05:14 AM
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.
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Missing User
StevenDale
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or