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

Error saving with Odata v4

Thread ID:





125023 Jul 15,2016 08:28 AM UTC Jul 19,2016 12:23 PM UTC JavaScript 1
Tags: ejGrid
Andrea Perazzolo
Asked On July 15, 2016 08:28 AM UTC

I'm using a DataGrid bind with OData v4, and I created a custom dialog template to edit the row data.
I want to use ejCheckbox instead of standard checkboxes, but I'm having an error during post data to web api odata controller, it returns this error:

+  Exception "!5dLt3!The property 'IsAdUser_hidden' does not exist on type 'THEasy.Model.User'. Make sure to only use property names that are defined by the type. Ploc Ploc Plo!" System.Exception {Microsoft.OData.Core.ODataException}

How can I resolve ?

In the attachment I included my webapi controller (UsersController), the view with the datagrid and template (Index.cshtml) and my data model class (User.cs).
I also included a screenshot with the wrong property name passed to the server 'IsAdUser_hidden'.


Attachment: syncfusion_6ccf9833.zip

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On July 19, 2016 12:23 PM UTC

Hi Andrea, 

We are able to reproduce the problem at our end. On using ejCheckBox control in the dialog editor template, wrapper element will be generated along with the original ejCheckBox which generates the IsAdUser_hidden value and it causes the problem while saving the data in server. To avoid problem, delete the corresponding key in the actionBegin event of the Grid. 

            dataSource: new ej.DataManager({ 
                url: "/Odata/Orders", adaptor: new ej.ODataV4Adaptor() 
             . . . ..  
            actionBegin: function (args) { 
                if (args.requestType == "save") { 
                    delete args.data["IsAdUser_hidden"] 

Seeni Sakthi Kumar S. 


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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