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