Required library edition:
Required library file: dhtmlxdataview.js
returns ID of first item ( item with index == 0 )
var id = view.first();