FlexGridBatchEdit throw The json text read is empty

Posted by: 1728884346 on 28 August 2019, 6:32 am EST

  • Posted 28 August 2019, 6:32 am EST - Updated 29 September 2022, 1:51 am EST

    Hi, i’m using FlexGrid and bind with FlexGridBatchEdit to do record update, but because some reason it throw exception below. think it’s because some property has invalid value.

    is there any public function to allow us to get more detail (which property cause the exception, what is invalid value) or allow us to customize this exceptioin?

    Message: The json text read is empty.

    Stack Trace:

    at C1.JsonNet.JsonReader.#Y6k()

    at C1.JsonNet.JsonReader.ReadValue(Type type)

    at C1.JsonNet.JsonHelper.DeserializeObject(String strJson, Type type, JsonSetting js)

    at C1.Web.Mvc.C1JsonRequestModelBinder.DeserializeModel(String text, Type modelType)

    at C1.Web.Mvc.ModelBinderBase.BindModel(String #yb, String #c4k, Type #d4k, ModelStateDictionary #e4k, Object& #3Yg)

    at C1.Web.Mvc.ModelBinderBase.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)

    at System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)

    at System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor)

    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__19(AsyncCallback asyncCallback, Object asyncState)

  • Posted 29 August 2019, 8:27 pm EST

    Hi,

    It seems you are using Dictionary Objects for Binding to the FlexGrid and trying to perform the BatchEditing.

    In this case, it also depend how you write the BatchEdit Action.

    Hence, we request you provide a demo sample depicting your issue so that we may debug and assist you accordingly.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels