Returns range data defined to the given range object.
getRangeData(range, [extra])

range | object, range object
extra | boolean, optional, indicates if to return extra information

Returns two-dimensional array.

#### Description

The first argument range is a two dimensional array that defines a range. The following is an example of such array: var range = [{ recid : 1, column : 0 },{ recid : 5, column : 2 }] The second argument extra indicates if you want to return plain grid data for the range or data with some extra information (recid, index, column_index and record).
If you have grid defined in the following way: $('#grid').w2grid({ name : 'grid', columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%' }, { field: 'fname', caption: 'First Name', size: '30%' }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'Start Date', size: '120px' }, { field: 'sdate', caption: 'End Date', size: '120px' } ], records: [ { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' }, { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' }, { recid: 3, fname: 'Jin', lname: 'Franson', email: '--', sdate: '4/23/2012' }, { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '5/3/2012' }, { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' }, { recid: 6, fname: 'Francis', lname: 'Gatos', email: 'vitali@gmail.com', sdate: '2/5/2012' } ] }); You can get the record: var rangeData = w2ui['grid'].getRangeData([{ recid: 1, column: 3}, { recid: 3, column: 5}]); console.log(rangeData);