Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben Walker on Jan 31, 2008 05:37
open dhtmlx forum
enableSmartRendering + enableSmartRenderingSorting

Hi,

Is it possible to use something similar the following code to enable to sort columns for a smart rendered grid?

   gridTest = new dhtmlXGridObject('gridTest');
   gridTest.enableSmartRendering(true);  
   gridTest.enableSmartRenderingSorting(true,true,true,true,true,true,true);
   gridTest.loadXML('data.xml');

The sorting results don't seem to work for me, but I am new to the component.

Thanks,

Ben

Answer posted by Support on Jan 31, 2008 06:20
   gridTest.enableSmartRenderingSorting(true); << you need not provide values for each column
   gridTest.loadXML('data.xml');

By your init code, it seems that you init configuration from XML. In such case the column tag must have correct sort attribute

<column sort="str"         <<sort as string ....
<column sort="na"         <<sort not available


The initial release of grid has some problem with sorting in case of smart-rendering, so if problem still occurs for you - please re-download updated package from dhmlx.com  ( or just contact us directly at support@dhtmlx.com - we will send you latest version of file )