Separate Model for Editing and Adding

Nov 9, 2012 at 4:18 PM


Is there any way to use a separate model for editing and adding records?  There are many fields that I would need to include in the edit and add forms but I don't want to show on the grid.



Nov 9, 2012 at 8:54 PM


The exact functionality you are looking for is not possible - this is not limitation of helper but jqGrid itself because the forms are being built from column model. However you can achieve the desired result by using HiddenInputAttribute to hide column from displaying and then setting EditHidden property off JqGridColumnEditableAttribute to true in order to make that column visible in add/edit form.