Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sébastien Arabasz on Apr 15, 2008 09:28
open dhtmlx forum
Sort in multi row header

How can I disabled col sorting on the second row of a multi row header (and keep enabled the col sorting on the first row) ?

thanks
Answer posted by Support on Apr 16, 2008 01:43
Actually you can't disable sorting behavior for some header row in grid, it will work for all rows or will not work at all.
You can try to modify

dhtlmxgrid.js , line 2539
   this.sortField = function(ind,repeatFl,r_el){
       if (this.hdr.rows[1] !=  r_el.parentNode) return; // block any row except first