3.2.0

Dynamically changing column names

Depending on what data I would like to show, there will be different names of columns. I would like to pass in the column names from my java servlet. I have tried to do this using the body onload event, and passing the column names in as a parameter. This fails because all the server-side code executes first. So, the setColumnProperty("texts", columns) has already been executed before the <body> tag gets rendered. How can I dynamically pass in the column names?
Joel
January 26,
You can change the column array at will. Make the change to the array, call setHeaderText again, and you may or may not need to call refresh after calling setHeaderText. Calling setHeaderText is not optional, you can't just change the array and expect the headers to change.
Jim Hunter
January 26,

This topic is archived.

See also:


Back to support forum