Page 1 of 1

Can you resize sfl columns size on the fly?

Posted: Fri Apr 23, 2010 3:54 pm
by Profound Logic
Question:
Can you resize sfl columns size on the fly?

Answer:
The column widths cannot be controlled directly with RPG code, however the grid's "setProperty" JavaScript API can be used to accomplish this by adjusting the "column widths" property:

http://www.profoundlogic.com/docs/displ ... +value+%29

After resizing the columns in this way, it's also necessary to call the grid's "render()" API to re-draw the grid properly:

http://www.profoundlogic.com/docs/displ ... nder%28%29

This can be controlled by RPG by putting out the desired column sizes to hidden fields. A script could then use those when calling "setProperty".