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

Disable Fields on Add record in ejGrid

Thread ID:





119621 Jul 15,2015 06:43 PM UTC Jul 16,2015 12:36 PM UTC JavaScript 1
Tags: ejGrid
Bruno Rodrigues
Asked On July 15, 2015 06:43 PM UTC

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.

Alan Sangeeth S [Syncfusion]
Replied On 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


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

This page will automatically be redirected to the 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