淘先锋技术网

首页 1 2 3 4 5 6 7

利用fineUi构建分页表格时候,报错:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   FineUI.Grid.AddClientSuitableFormatValues(Nullable`& renderAsJArray, JObject jo, String name, Object[] values) +
   FineUI.Grid.get_F_Rows() +

[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +
   System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +
   System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +
   FineUI.ControlBase.GetPropertyJSONValue(String prop) +
   FineUI.FState.CalculateModifiedProperties() +
   FineUI.ControlBase.OnPreRender(EventArgs e) +
   System.Web.UI.Control.PreRenderRecursiveInternal() +
   System.Web.UI.Control.PreRenderRecursiveInternal() +
   System.Web.UI.Control.PreRenderRecursiveInternal() +
   System.Web.UI.Control.PreRenderRecursiveInternal() +
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +

我这个原因是Grid控件没有行关键值,解决方案:添加下图矩形框内容

这里写图片描述