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. Image for the cookie policy date
close icon

Disable Fields on Add record in ejGrid

Hi there,

I would like to know if there is any option that I can use to block (disable) fields in the ejGrid, similarly to allowEdit: false when I'm adding a record.

The problem is that I have some fields that are filled automatically after the record is inserted successfully in my database(when grid is refreshed).
However when I'm adding a new record I would like to be able just to fill those fields which are actually required, and disable those which aren't.
The truth is It works fine by having non required fields able to be edited, because my c# functions don't consider them, but it's a bit confusing for someone who is interacting with the page for the first time.

My second question, is if there is any option like Auto-complete for ejDropDownLists, for example, If i Had a record in the data source called ("I like McDonalds"), If I wrote, "I Like" it would complete the rest.

Best regards and Thank you for your time.

1 Reply

AS Alan Sangeeth S Syncfusion Team July 16, 2015 12:36 PM UTC

Hi Bruno,

Thanks for using Syncfusion products.

Query 1: “Disable a field while adding record”

We suggest you to use the “isIdentity” property of Grid Columns to disable the field while adding. Please refer the following link for further reference.

Query 2: “AutoComplete for Dropdownlist”

We suggest you to use EditTemplate Grid feature to display a custom editor (“autocomplete with dropdownllist”). Please refer the following API documentation link for further reference on EditTemplate feature.


For your convenience we have created a sample and the same can be downloaded from below link.

Sample: http://www.syncfusion.com/downloads/support/forum/119621/ze/grid_(3)-431213806

Please let us know if you need any further assistance.

Alan Sangeeth S

Live Chat Icon For mobile
Up arrow icon