Hi Folks,
i am happy NUCLIOS 2015 supports this feature and there is also a sample - but pure C.
Would it be possible to get a c# sample ?
It seems, i would have to overwrite some IGGridViewDataSourceHelper functions, but i don't get it ...
Thanks in advance
Gernot
Hi Gernot,
Are you currently using the IGGridViewDatSourceHelper in your project?
If so, you don't need to override anything.
There is a new method, gridView:addFixedRowAtPath: in C# the name is AddFixedRow
so you would call it as dish.AddFixedRow(gridView, pathOfRowToFix)
Thats it.
Hope this helps.
-SteveZ
Hi Steve,
i just found out that Xamarin Studio fails to build the application for an IOS device (the previous tests i did against the simulator) with the new IG.Unified.dll
with the following error:
/Users/gdo/Projekte/MikMobileUnified/MTOUCHTASK: Error MT5211: Native linking failed, undefined Objective-C class: _OBJC_CLASS_$_IGGridViewSingleFieldDynamicColumnDataSourceHelper. If '_OBJC_CLASS_$_IGGridViewSingleFieldDynamicColumnDataSourceHelper' is a protocol from a third-party binding, please check that it has the [Protocol] attribute in its api definition file, otherwise verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5211) (MIKmobile)
Fore sure i switched back to the previous Version, removed the AddFixedRows() call and verything was fine.
Maybe that helps ...
Best regards
thanks for the quick response!
But when do this with my overwritten DataSourceHelper
dsh.AddFixedRow(datagrid, new IGRowPath(1, 0, IGGridViewFixedRowDirection.IGGridViewFixedRowDirectionTop));
I get the following Exception
So i think, i have to overwrite some functions
2015-04-15 16:49:48.860 MIKmobile[2143:47780] Exception at CallExecuteServerActions : Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) [0x00000] in /Developer/MonoTouch/Source/maccore/src/ObjCRuntime/Runtime.cs:156 at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) [0x00000] in /Developer/MonoTouch/Source/maccore/runtime/Delegates.generated.cs:100 at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr) at (wrapper managed-to-native) ApiDefinition.Messaging:void_objc_msgSendSuper_IntPtr_IntPtr (intptr,intptr,intptr,intptr) at Infragistics.IGGridViewDataSourceHelper.AddFixedRow (Infragistics.IGGridView gridView, Infragistics.IGRowPath path) [0x00000] in <filename unknown>:0 at Mik.StarLight.Controls.StarTable.BuildControl (Boolean isbuildingpageIn) [0x00597] in /Users/gdo/Projekte/MikMobileUnified/Table/StarTable.cs:450 at Mik.StarLight.MainPage.BuildActions+<ShowMikObj>c__AnonStorey0.<>m__0 () [0x00011] in /Users/gdo/Projekte/StarLight/MikStarLightPresentation/Mainpage/BuildActions.cs:581 at Foundation.NSActionDispatcher.Apply () [0x00000] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSAction.cs:56 at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_IntPtr_bool (intptr,intptr,intptr,intptr,bool) at Foundation.NSObject.InvokeOnMainThread (System.Action action) [0x00007] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:575 at Mik.StarLight.MainPage.BuildActions.ShowMikObj (System.String caller, Boolean buildinprogress, Boolean always, Boolean allowlazy, Boolean ttest, Mik.StarLight.MainPage.StarObj sobju, System.String onylonetarget) [0x00313] in /Users/gdo/Projekte/StarLight/MikStarLightPresentation/Mainpage/BuildActions.cs:581 NSInvalidArgumentException: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil 0 CoreFoundation 0x0395b466 __exceptionPreprocess + 182 1 libobjc.A.dylib 0x03cfca97 objc_exception_throw + 44 2 CoreFoundation 0x038125a1 -[__NSArrayM insertObject:atIndex:] + 881 3 CoreFoundation 0x03812201 -[__NSArrayM addObject:] + 65 4 MIKmobile 0x0060675a -[IGGridViewDataSourceHelper gridView:addFixedRowAtPath:] + 266 5 ??? 0x157aae84 0x0 + 360361604 6 ??? 0x157aadbc 0x0 + 360361404 7 ??? 0x1578f368 0x0 + 360248168 8 ??? 0x1578daf5 0x0 + 360241909 9 ??? 0x14eb76a1 0x0 + 350975649 10 ??? 0x11c6aa58 0x0 + 298232408 11 MIKmobile 0x00873d45 mono_jit_runtime_invoke + 725 12 MIKmobile 0x00910bef mono_runtime_invoke + 127 13 MIKmobile 0x009e3b40 xamarin_trampoline + 5120 14 Foundation 0x016e22c2 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 892 15 Foundation 0x016e1dd4 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 160 16 ??? 0x133b2380 0x0 + 322642816 17 ??? 0x14eb74bc 0x0 + 350975164 18 ??? 0x15788af3 0x0 + 360221427 19 ??? 0x1578d01c 0x0 + 360239132 20 ??? 0x1578c7c4 0x0 + 360236996 21 ??? 0x1578b600 0x0 + 360232448 22 ??? 0x1578b57c 0x0 + 360232316 23 ??? 0x1578b2ac 0x0 + 360231596 24 ??? 0x1578b0c4 0x0 + 360231108 25 ??? 0x1578a6b4 0x0 + 360228532 26 ??? 0x1578997c 0x0 + 360225148 27 ??? 0x157896e4 0x0 + 360224484 28 ??? 0x14eb76a1 0x0 + 350975649 29 ??? 0x11c6aa58 0x0 + 298232408 30 MIKmobile 0x00873d45 mono_jit_runtime_invoke + 725 31 MIKmobile 0x00910bef mono_runtime_invoke + 127 32 MIKmobile 0x009e3b40 xamarin_trampoline + 5120 33 libobjc.A.dylib 0x03d12771 -[NSObject performSelector:withObject:] + 70 34 Foundation 0x01718620 __NSThreadPerformPerform + 330 35 CoreFoundation 0x0387e98f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 36 CoreFoundation 0x0387449d __CFRunLoopDoSources0 + 253 37 CoreFoundation 0x038739f8 __CFRunLoopRun + 952 38 CoreFoundation 0x0387337b CFRunLoopRunSpecific + 443 39 CoreFoundation 0x038731ab CFRunLoopRunInMode + 123 40 GraphicsServices 0x051832c1 GSEventRunModal + 192 41 GraphicsServices 0x051830fe GSEventRun + 104 42 UIKit 0x01f509b6 UIApplicationMain + 1526 43 ??? 0x12192a68 0x0 + 303639144 44 ??? 0x12192868 0x0 + 303638632 45 ??? 0x12190af8 0x0 + 303631096 46 ??? 0x121907b8 0x0 + 303630264 47 ??? 0x121909de 0x0 + 303630814 48 MIKmobile 0x00873d45 mono_jit_runtime_invoke + 725 49 MIKmobile 0x00910bef mono_runtime_invoke + 127 50 MIKmobile 0x00915a71 mono_runtime_exec_main + 401 51 MIKmobile 0x0091582a mono_runtime_run_main + 746 52 MIKmobile 0x007d1c2d mono_jit_exec + 93 53 MIKmobile 0x009d7c2d xamarin_main + 2461 54 MIKmobile 0x0077c215 main + 117 55 libdyld.dylib 0x04ce4ac9 start + 1 56 ??? 0x00000003 0x0 + 3