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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Documentation in axml

Thread ID:

Created:

Updated:

Platform:

Replies:

128867 Feb 13,2017 02:34 PM UTC Feb 28,2017 06:57 PM UTC Xamarin.Android 3
loading
Tags: SfDataGrid
PT
Asked On February 13, 2017 02:34 PM UTC

Hi.
I have 2 question:
1. Is there available documentation in xaml? Whole documentation is for code-creating UI, but most of developers use axml file to create UI. Personaly, I dont understand this.
2. Is Syncfusion for Xamarin Android compatible with MVVM pattern (binding etc.) and MVVMCross for Xamarin.Android?

Ashok N [Syncfusion]
Replied On February 14, 2017 01:22 PM UTC

Hi Przemyslaw, 
 
Thanks for contacting Syncfusion support. 
 
SfDatagrid is unavailable on .axml view. In Xamarin.Android everything should be made in Code behind, we have now provided support to create the SfDataGrid view in the .axml file. However for setting properties of the SfDataGrid you have to use the FindViewById<> in the code behind. We have prepared a sample where we have created the SfDataGrid view in the .axml file and have populated the grid with data from code behind. 
 
 
From the below UG link you can get the more details about the SfDataGrid and feature list 
 
Regards, 
Ashok 


PT
Replied On February 27, 2017 12:27 PM UTC

Thanks for answer, this solution satisfied me.

Now, I have got problem:
In my app I have menu with clickable griview and SfDataGrid  list of operation. First option in  menu is open ZXing fragment scanner. When in fragment scanner i press backbutton, error occurs. In my MenuActivity  fires onRestart and onResume and than error.
When I back to MenuActivivty form any other activity everything is ok, error only occurs when Zxing library is on.


Error:

 Java.Lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference
02-27 12:50:40.748 I/MonoDroid(17129):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4009/f3074d2c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
02-27 12:50:40.748 I/MonoDroid(17129):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x000a7] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12083 
02-27 12:50:40.748 I/MonoDroid(17129):   at Java.Interop.JniPeerMembers+JniInstanceMethods.FinishCreateInstance (System.String constructorSignature, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00060] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods.cs:148 
02-27 12:50:40.748 I/MonoDroid(17129):   at Android.Graphics.Paint..ctor (Android.Graphics.Paint paint) [0x00078] in /Users/builder/data/lanes/4009/9578cdcd/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Graphics.Paint.cs:730 
02-27 12:50:40.748 I/MonoDroid(17129):   at Syncfusion.SfDataGrid.CellElement.CalculateTopAndBottomPadding (Android.Views.GravityFlags alignment, Android.Widget.TextView view, System.String text, System.Int32 height, System.Int32 minimumIndent, System.Int32& topPadding, System.Int32& bottomPadding, Android.Graphics.Paint paintText, Syncfusion.SfDataGrid.LineBreakMode lineBreakMode) [0x0000d] in <9bb698f697c545b396d994d057ae13d9>:0 
02-27 12:50:40.749 I/MonoDroid(17129):   at Syncfusion.SfDataGrid.GridHeaderCellControl.calculatePaddingForAlignment (Android.Widget.TextView view, System.Int32 width, System.Int32 height) [0x000c3] in <9bb698f697c545b396d994d057ae13d9>:0 
02-27 12:50:40.749 I/MonoDroid(17129):   at Syncfusion.SfDataGrid.GridHeaderCellControl.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x0020d] in <9bb698f697c545b396d994d057ae13d9>:0 
02-27 12:50:40.749 I/MonoDroid(17129):   at Android.Views.ViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00009] in /Users/builder/data/lanes/4009/9578cdcd/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Views.ViewGroup.cs:3427 
02-27 12:50:40.749 I/MonoDroid(17129):   at (wrapper dynamic-method) System.Object:9e33371e-b4c9-4a8c-900f-d0ea4b3e794f (intptr,intptr,bool,int,int,int,int)
02-27 12:50:40.749 I/MonoDroid(17129):   --- End of managed Java.Lang.NullPointerException stack trace ---
02-27 12:50:40.749 I/MonoDroid(17129): java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference
02-27 12:50:40.749 I/MonoDroid(17129): at android.graphics.Paint.<init>(Paint.java:448)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.GridHeaderCellControl.n_onLayout(Native Method)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.GridHeaderCellControl.onLayout(GridHeaderCellControl.java:67)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.VirtualizingCellsControl.n_onLayout(Native Method)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.VirtualizingCellsControl.onLayout(VirtualizingCellsControl.java:64)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.VisualContainer.n_onLayout(Native Method)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.VisualContainer.onLayout(VisualContainer.java:62)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.ScrollViewer.n_onLayout(Native Method)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.ScrollViewer.onLayout(ScrollViewer.java:176)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.SfDataGrid.n_onLayout(Native Method)
02-27 12:50:40.749 I/MonoDroid(17129): at md5c91aceb59597f50fed702bd2c746cea3.SfDataGrid.onLayout(SfDataGrid.java:71)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:493)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
02-27 12:50:40.749 I/MonoDroid(17129): at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
02-27 12:50:40.749 I/MonoDroid(17129): at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2685)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.View.layout(View.java:16722)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewGroup.layout(ViewGroup.java:5438)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2175)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1935)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1111)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6017)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
02-27 12:50:40.749 I/MonoDroid(17129): at android.view.Choreographer.doCallbacks(Choreographer.java:670)
02-27 12:50:40.750 I/MonoDroid(17129): at android.view.Choreographer.doFrame(Choreographer.java:606)
02-27 12:50:40.750 I/MonoDroid(17129): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
02-27 12:50:40.750 I/MonoDroid(17129): at android.os.Handler.handleCallback(Handler.java:739)
02-27 12:50:40.750 I/MonoDroid(17129): at android.os.Handler.dispatchMessage(Handler.java:95)
02-27 12:50:40.750 I/MonoDroid(17129): at android.os.Looper.loop(Looper.java:224)
02-27 12:50:40.750 I/MonoDroid(17129): at android.app.ActivityThread.main(ActivityThread.java:5526)
02-27 12:50:40.750 I/MonoDroid(17129): at java.lang.reflect.Method.invoke(Native Method)
02-27 12:50:40.750 I/MonoDroid(17129): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
02-27 12:50:40.750 I/MonoDroid(17129): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Ashok N [Syncfusion]
Replied On February 28, 2017 06:57 PM UTC

Hi Przemyslaw,

Thank you for using Syncfusion Products.

We have checked your query and a support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Ashok 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;