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



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.

1213176489.zip (62.5 KB)