No editing

Nov 20, 2013 at 2:37 PM
Hi Tomasz,

For a grid I won't enable editing. Delete and Inserts are allowed however. Is that possible? Thought I switched off editing as the generated code looks fine, but still the edit icon appears on the action line:
url: '/Session/GeSessionsUrl',
datatype: 'json',
jsonReader: { repeatitems: false, id: 'SessionId' }, 
loadError: GridLoadError,
mtype: 'POST',
pager: '#sessionsPager',
rowList: [10,20,30,40,50],
rowNum: 10,
sortname: 'CreateDate',
viewrecords: true,
height: '100%'
}).jqGrid('navGrid', '#sessionsPager',
{ add: false, edit: __false__, del: false }).jqGrid('inlineNav', '#sessionsPager', 
{ edit: __false__, addParams: { rowID: '0', addRowParams: { url: '/Session/InsertSession', aftersavefunc: ReloadGrid, errorfunc: UpdateFailed } } });
What might be wrong? I still have editoptions for columns as I need them for the inserts.
Thanks in advance for any help!

Regards Gerard
Nov 20, 2013 at 7:55 PM
Hi Gerard,

The .AddActionsColumn() and .InlineNavigator() are completely independent and can be used separately. Because of that they also have separated configuration. If you want to hide the edit button form actions column you need to use editButton: false option in call to .AddActionsColumn().

Tomasz Pęczek
Marked as answer by TPeczek on 11/27/2013 at 2:28 AM