Separate Model for Editing and Adding

Nov 9, 2012 at 3:18 PM

Hello,

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.

 

Thanks!

Coordinator
Nov 9, 2012 at 7:54 PM

Hi,

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.