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.

Disable Fields on Add record in ejGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

119621 Jul 15,2015 02:43 PM Jul 16,2015 08:36 AM JavaScript 1
loading
Tags: ejGrid
Bruno Rodrigues
Asked On July 15, 2015 02:43 PM

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.



Alan Sangeeth S [Syncfusion]
Replied On July 16, 2015 08:36 AM

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

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.

;