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.

Field Visible while editing

Thread ID:

Created:

Updated:

Platform:

Replies:

101339 Oct 17,2011 08:27 AM Sep 17,2013 07:22 AM ASP.NET MVC (Classic) 6
loading
Tags: Grid
Balu
Asked On October 17, 2011 08:27 AM


Hi,
I have a column which is set visible = false, but in dialog edit mode the column is visible.

Can you please resolve?

.Column(column =>{column.Add(p => p.Id).Visible(false).AllowEditing(false);........

Thanks
Balu Chand


Eswari S [Syncfusion]
Replied On October 19, 2011 06:04 AM

Hi Balu,

Thank you for using Syncfusion products.

Query #1 : Field Visible while editing

Step #1 :AllowEditing property is used to make the editing false for particular field. Please refer to the following code snippets:


@{ Html.Syncfusion().Grid('SampleGrid')
. . .
.Column(col =>
{
. . .

col.Add(P => P.CustomerID).AllowEditing(false).HeaderText('Customer ID'); // set AllowEditing as false

. . .
})
}

Step #2 : If you want to hide the particular field from editing, then we can achieve the requirement in OnActionSucess event.

Sample code :



For your convenience, we have prepared the sample and the same can be downloaded from the following link :

Sample1247294632.zip

Also ,we can define the template columns for grid editing with DilogTemplate edit. Please refer to the following online UG :

http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2F5773editmodeconfiguration.htm

Please find the DialogTemplateEdit sample from the following link :

DialogTemplateEditing-198702443.zip


Please try this and let us know if you need any further assistance.

Regards,
Eswari.S





Jeremy Branham
Replied On September 1, 2013 12:59 PM

Writing hardcoded javascript functions is not a great way to handle something like this.
 
The grid rendering should support MVC data annotation attributes to show/hide columns.
 
The IMetadataAware interface should be considered.
 
 

Bala Murugan A.S [Syncfusion]
Replied On September 4, 2013 08:37 AM

Hi Balu,

 

Thanks for your update.

 

We are sorry for the inconvenience caused.

 

Currently we don't have full support of grid with mvc data annotation and This will be implemented in our upcoming feature releases.  We have logged your requirement as a feature request in our database and this will be implemented in our upcoming feature volume releases. It can be tracked through our Features Management System:

 

http://www.syncfusion.com/support/directtrac/features/MVC-1584

 

Please let us know if you have any concerns.

 

Regards,

Bala Murugan A.S


Jeremy Branham
Replied On September 14, 2013 04:24 PM

Thanks.

Jeremy Branham
Replied On September 15, 2013 07:10 PM

I don't see the feature request. Could the number be wrong?

Eswari S [Syncfusion]
Replied On September 17, 2013 07:22 AM

Hi Jeremy,

 

Sorry about the inconvenience caused.

 

The feature request can be viewed only if you are a licensed user. Please create the new incident in DirectTrac for better follow up with the features.

 

Please let us know if you have any queries.

 

Regards,

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

;