Required library edition:
Required library file: dhtmlxdataview.js
returns ID of last item ( item with index == dataCount-1 )
var id = view.last();