Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben on Apr 25, 2009 12:36
open dhtmlx forum
grid smartRendering produces horizontal scroll

If I turn on smartRendering then the grid renders with a horizontal scroll bar that is normally not there if I don't use smartRendering.

Also it seems that areas of white space form in between the rows when scrolling up and down.
Answer posted by Support on Apr 27, 2009 08:20
Which versino of grid you are using?

Normally, no unnecessary scroll must appear. The smart rendering mode controls only how rows rendered and not affect sizing in grid.
You can try to use grid.enableAutoWidth(true) or define size for one of columns as "*" to enable auto-adjust mode.

>>space form in between the rows when scrolling up and down.
Are you using default skin or some custom one? In case of srnd mode , position of view calculated based on row's height, which is predefined for all known skins and if you have changed it , or have added new skin - you need to use next command to inform component about awaited height of row

            grid.setAwaitedRowHeight(x);

where x - integer, height of row