Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CHW on Jun 10, 2008 12:10
open dhtmlx forum
setSkin("xp")

Hi,

Problems when the combination exists (In the new version):

mygrid = new dhtmlXGridFromTable('gridbox');
onbeforeinit="mygrid.enableSmartRendering(true);"
mygrid.setSkin("xp");

When rolling the screen it happens mistake in the dhtmlxgrid_srnd.js!!!

If me remove or to alter mygrid.setSkin("xp"); for example: modern
Everything works.

Best regards,

CHW

Answer posted by Support on Jun 11, 2008 02:13
To be safe , it better to have both enableSmartRendering and setSkin commands in onbeforeinit section ( the change of skin, changes height of grid rows, which is used to calculate view position in smart rendering mode, so it is not safe to change skin after data loading, when smart rendering mode used )

Please check attached sample, it uses recommended approach and works correctly.
Attachments (1)