Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben on Jun 17, 2008 09:54
open dhtmlx forum
grid send order to dataprocessor

Is there anyway we can get the grid to send the order of the rows by the specified ID to the data processor?

Similar to how the treegrid .getChecked() function works? It would send in the _GET request a comma delimited list of the current rows in order.

Example:
$_GET['gr'] = 1,2,4,6,8,5

Where we now know the order of all rows for the current update and can process on the server.

Answer posted by Support on Jun 18, 2008 02:10
There is no such built in functionality, but you can update dataprocessor in necessary way.

dhtmlxdataprocessor.js, _getRowData method ( line 412 )

var str=pref+"gr_id="+this.escape(rowId);
//next code may be added
var order=[];
for (var i=0; i<this.obj.getRowsNum(); i++)
    order.push(this.obj.getRowId(i));
 str+="&order="+this.escape(order.join(","));

Answer posted on Nov 14, 2008 08:52
Was this added to the latest version?
Answer posted by Support on Nov 14, 2008 09:08
Such functionality was not added to the dataprocessor logic. 
Row indexes are very flexible, change in single row may affect indexes of all other rows, as well as sorting, filtering , grouping and others.