Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sriram Prasad on Nov 26, 2008 22:40
open dhtmlx forum
Column sorting with column span rows

Hi,

I've a Dhtmlx Grid in which two rows are colspan.Under each of these 2 rows,I've some normal rows.
Now,when i'm trying to sort the grid by a column the two rows(which are colspaned)are together and staying either at top or bottom while sorting.I want to sort the rows by a column under these 2 colspaned rows independently keeping the colspaned 2 rows fixed in their positions.

Can i sort a grid by a column value when i use colspan?

Thanks,
Sriram.
Answer posted by Support on Nov 27, 2008 02:25
The colspan must not cause any problems for sorting, it will be treated the same as normal row. ( the all column in colspan will use the same cell value for sorting ) 

>>I want to sort the rows by a column under these 2 colspaned rows independently keeping the colspaned 2 rows fixed in their positions.
By default grid doesn't allow such behavior, but can be implemented with custom sorting. 
Please check 
         http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Sorting_in_grid.html#grid_art_sort
         "Partial sorting" section