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

Disable Fields on Add record in ejGrid

Hi there,

1. 
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.

2. 
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.
http://helpjs.syncfusion.com/js/api/ejgrid#members:columns-isidentity

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.

http://helpjs.syncfusion.com/js/api/ejgrid#members:columns-edittemplate

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.

Regards,
Alan Sangeeth S

Loader.
Up arrow icon