Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by prabhu on Jun 04, 2008 22:31
open dhtmlx forum
Are there any buildin methods for doing sorting or whats the way of doing sorting for that combo.

Hello,

   I'm using DHTML Grid Combo.I would like to do sorting in that combo.Are there any buildin methods for doing sorting or whats the way of doing sorting for that combo.

Pls find below code snippet for my grid combo

 <column width='120' type='coro' align='center'&gt;<![CDATA[Name<span style='color:red'&gt;*</span&gt;]]&gt;

  Help me to get sort the grid combo.Thanks!
Answer posted by Support on Jun 05, 2008 01:55
Grid can be sorted by any column , by using grid.sortRows method

    grid.sortRows(0,"str","asc"); //sort first column as string in ascendant order

The sorting available for all column types, including co|coro
The sorting by column clicking can be enabled , by specifying it directly in column header

     <column width='120' type='coro'  sort="str" ...

http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Sorting_in_grid.html#grid_art_sort