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.
Unfortunately, activation email could not send to your email. Please try again.

Add new record in editable grid

Thread ID:

Created:

Updated:

Platform:

Replies:

123419 Mar 16,2016 06:34 AM Mar 21,2016 01:02 AM JavaScript 3
loading
Tags: ejGrid
Stefano Enrico
Asked On March 16, 2016 06:34 AM

Hi, 

i have, in an editable grid, a column with allowEditing = false. When i click to add a new record, this column-field is editable. Is it right? Can i disabled this field?
Thanks
Stefano

Venkatesh Ayothi Raman [Syncfusion]
Replied On March 17, 2016 06:27 AM

Hi Stefano,

Thanks for contacting Syncfusion support.

The issue occurs in two scenarios:
1)      when we disable the allowEditing as well as set a primary key as true for same column.
Eg. { field: "OrderID", isPrimaryKey: true, allowEditing:false, headerText: "Order ID", textAlign: ej.TextAlign.Right, validationRules: { required: true, number: true }, width: 90 },
2)      If we use any prior version of 13.3.0.7

To disable the field for primary key column when we add a new record, then we suggest you to use useisIdentity property, which disable the field while we add a new record. But in your database identity column is must otherwise we can’t perform the editing operation for newly added record and its throws a script error.
If we misunderstood your query, please share the following details,
1)      Essential studio version details.
2)      Scenario to reproduce the issue.
3)      If any script error thrown in console window then provide a screenshot of that.
4)      A sample if possible or share the code example.

Regards,
Venkatesh Ayothiraman.

Stefano Enrico
Replied On March 18, 2016 06:46 AM

ok, thanks

Regards
Stefano

Venkatesh Ayothi Raman [Syncfusion]
Replied On March 21, 2016 01:02 AM

Hi Stefano,

Thanks for the update.

We are happy to hear that your requirement is achieved. Please let us know if you have any further assistance.

Regards,
Venkatesh Ayothiraman.

CONFIRMATION

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.

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.

;