I'm attempting to add a RadDataForm to a fragment:
this
.form =
new
RadDataForm(
this
.Context);
var entity =
new
Models.Inventory.ConveyanceReceipt();
this
.form.SetEntity(entity);
this
._root.AddView(
this
.form);
The line where i call .SetEntity(object) throws a Java.Lang null pointer exception:
Unhandled Exception:
Java.Lang.NullPointerException: Attempt to invoke
virtual
method
'boolean java.lang.Class.isInterface()'
on a
null
object
reference.
The entity model is:
public
class
ConveyanceReceipt : Java.Lang.Object
{
[DataFormProperty(Label=
"Conveyance ID"
, Index = 1, Required =
true
)]
public
string
Tracker {
get
;
set
; }
[DataFormProperty(Label =
"Scan Time"
, Index = 0, ReadOnly =
true
)]
public
DateTime Time {
get
;
set
; } = DateTime.Now;
}
I kept it very simple and I really am trying to wrap my head around why I can't get the basic example past SetEntity();
Any help would be greatly appreciated, is there some initialization that I'm not doing? I tried tracking down the isInterface getter and couldn't locate a value for it in debugger.