DataViews.Table column arrangement

26 views
Skip to first unread message

Samuel Stavinoha

unread,
Mar 5, 2013, 12:16:12 AM3/5/13
to webel...@googlegroups.com
Hello!

Using the addRows method on my table element, I can successfully build tables. However, it seems like no matter how I construct the arguments to feed to addRows(), the columns in the table end up arranged in alphabetical order. How can I arrange the columns in the table, after-the-fact? i.e. I want to be able to re-arrange the columns after the table has been created and filled with data. 

Thanks in advance. 

-Sam

timothy crosley

unread,
Mar 9, 2013, 10:05:51 AM3/9/13
to webel...@googlegroups.com
Hi Sam!

Sorry about the delay - I've been on holiday for the past week.
There is currently no easy way to set the columns after the fact, however if you do table.addColumns(['column1', 'column2']) before inserting data
you can guarantee the columns will be in the correct order. I will work on adding additional functionality to easily modify column orderings after the fact
and should have it finished before the end of the day - along with better documentation on using tables. Let me know if this helps and if you have 
any further questions.

Your welcome, and thanks for pointing out the issue!

Timothy

timothy crosley

unread,
Mar 9, 2013, 1:19:50 PM3/9/13
to webel...@googlegroups.com
Hi Sam,

Ive added the needed functionality and detailed its usage under the quick start guides on the webelements site. All you should have to do to change the order of the columns is change the column attribute on the table.

I hope you find this useful, thanks!

Timothy

Reply all
Reply to author
Forward
0 new messages