{hero}

idSrc

Since: Editor 1.2.3

JSON property from which to read / write the row's ID property.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

Editor needs to have the ability to uniquely identify rows when being used as a DataTable editor. This is needed in order to be able to tell the server what row is being edited, or should be removed from the database.

By default Editor will use the DT_RowId property from the data source object. The DT_RowId property is a special one in DataTables as it will be automatically assigned as the row's DOM node id. This is not required for Editor to function correctly, but it can be useful, particularly when working with the rows() selector options.

This property can be set to any value, using the same dotted Javascript object notation options as the columns.data DataTables option. This provides the ability to read data from nested object parameters (see example below).