We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Method not found: double Microsoft.Maui.ScrollToRequest.get_HoriztonalOffset()

This error happens when I use the example on the website https://help.syncfusion.com/maui/datagrid/getting-started

   at Microsoft.Maui.CommandMapper`2.<>c__DisplayClass6_0[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Syncfusion.Maui.Core.Hosting.IScrollViewHandler, Syncfusion.Maui.Core, Version=20.4600.0.52, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v, Object o) in D:\a\_work\1\s\src\Core\src\CommandMapper.cs:line 92

   at Microsoft.Maui.CommandMapper.InvokeCore(String key, IElementHandler viewHandler, IElement virtualView, Object args) in D:\a\_work\1\s\src\Core\src\CommandMapper.cs:line 33

   at Microsoft.Maui.CommandMapper.Invoke(IElementHandler viewHandler, IElement virtualView, String property, Object args) in D:\a\_work\1\s\src\Core\src\CommandMapper.cs:line 51

   at Microsoft.Maui.Handlers.ElementHandler.Invoke(String command, Object args) in D:\a\_work\1\s\src\Core\src\Handlers\Element\ElementHandler.cs:line 95

   at Microsoft.Maui.Controls.ScrollView.OnScrollToRequested(ScrollToRequestedEventArgs e) in D:\a\_work\1\s\src\Controls\src\Core\ScrollView.cs:line 376

   at Microsoft.Maui.Controls.ScrollView.ScrollToAsync(Double x, Double y, Boolean animated) in D:\a\_work\1\s\src\Controls\src\Core\ScrollView.cs:line 235

   at Syncfusion.Maui.DataGrid.SfDataGrid.OnItemsSourceChanged(BindableObject bindable, Object oldValue, Object newValue)

   at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 535

   at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 469

   at Microsoft.Maui.Controls.BindingExpression.ApplyCore(Object sourceObject, BindableObject target, BindableProperty property, Boolean fromTarget) in D:\a\_work\1\s\src\Controls\src\Core\BindingExpression.cs:line 160

   at Microsoft.Maui.Controls.BindingExpression.Apply(Object sourceObject, BindableObject target, BindableProperty property) in D:\a\_work\1\s\src\Controls\src\Core\BindingExpression.cs:line 75

   at Microsoft.Maui.Controls.Binding.Apply(Object context, BindableObject bindObj, BindableProperty targetProperty, Boolean fromBindingContextChanged) in D:\a\_work\1\s\src\Controls\src\Core\Binding.cs:line 136

   at Microsoft.Maui.Controls.BindableObject.ApplyBindings(Boolean skipBindingContext, Boolean fromBindingContextChanged) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 553

   at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext(BindableObject bindable, Object value) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 258

   at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext(Element child, Object context) in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 514

   at Microsoft.Maui.Controls.Element.<OnBindingContextChanged>b__82_0(BindableObject child, Object bc) in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 332

   at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext[Element](BindableObject self, IEnumerable`1 children, Action`2 setChildBindingContext) in D:\a\_work\1\s\src\Controls\src\Core\BindableObjectExtensions.cs:line 28

   at Microsoft.Maui.Controls.Element.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 330

   at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\VisualElement.cs:line 892

   at Microsoft.Maui.Controls.View.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\View.cs:line 215

   at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext(BindableObject bindable, Object value) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 259

   at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext(Element child, Object context) in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 514

   at Microsoft.Maui.Controls.TemplatedPage.SetChildInheritedBindingContext(Element child, Object context) in D:\a\_work\1\s\src\Controls\src\Core\TemplatedPage.cs:line 42

   at Microsoft.Maui.Controls.Element.<OnBindingContextChanged>b__82_0(BindableObject child, Object bc) in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 332

   at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext[Element](BindableObject self, IEnumerable`1 children, Action`2 setChildBindingContext) in D:\a\_work\1\s\src\Controls\src\Core\BindableObjectExtensions.cs:line 28

   at Microsoft.Maui.Controls.Element.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\Element.cs:line 330

   at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\VisualElement.cs:line 892

   at Microsoft.Maui.Controls.Page.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\Page.cs:line 345

   at Microsoft.Maui.Controls.ContentPage.OnBindingContextChanged() in D:\a\_work\1\s\src\Controls\src\Core\ContentPage.cs:line 19

   at Microsoft.Maui.Controls.BindableObject.BindingContextPropertyChanged(BindableObject bindable, Object oldvalue, Object newvalue) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 573

   at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 535

   at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 469

   at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value, Boolean fromStyle, Boolean checkAccess) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 391

   at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 365

   at Microsoft.Maui.Controls.BindableObject.set_BindingContext(Object value) in D:\a\_work\1\s\src\Controls\src\Core\BindableObject.cs:line 44


2 Replies

KK Karthikraja Kalaimani Syncfusion Team March 3, 2023 05:53 AM UTC

Hi Marcos, 


This is already a known issue, and this occurs exception occurs in .Net7.0. This is occurred due to API name change in framework level. This will be resolved in our upcoming 2023 Volume 1 release which is scheduled on 21st March 2023. As of now, please use the .NET 6.0 target for the sample to avoid this issue. We appreciate your patience until then.

Regards,
Karthik Raja



KK Karthikraja Kalaimani Syncfusion Team March 27, 2023 05:51 AM UTC

We have fixed the reported issue ““System.MissingMethodException:** 'Method not found: double Microsoft.Maui.ScrollToRequest.get_HoriztonalOffset()'” and included the issue fix in our 2023 Volume 1 main release version 21.1.35 which is available for download (https://www.nuget.org/).  We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon