- Home
- Forum
- ASP.NET MVC (Classic)
- Field Visible while editing
Field Visible while editing
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
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
. . .
.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
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
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
- 6 Replies
- 4 Participants
-
BA Balu
- Oct 17, 2011 12:27 PM UTC
- Sep 17, 2013 11:22 AM UTC