Hi,
You can hide delete button of Attribute Inspector and also you can have control on the fields of Attribute Inspector.
You just need to add the below following code in your editing function:
var layerInfos = [];
layerInfos = [
{
'featureLayer': xyz, //your featureserver layer
'isEditable': false,
'showDeleteButton':true, // in your case, it will be false
'fieldInfos': [
{'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},
{'fieldName':'', 'isEditable':true ,'label':''}
]
},
{
'featureLayer': ,
'isEditable': false,
'showDeleteButton':true,
'fieldInfos': [
{'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},
{'fieldName':'', 'isEditable':true ,'label':''}
]
}
];
var settings = {
layerInfos : layerInfos
};
Thanks,
Mayur Patel