Column names repeated on end of the list.
6 posts
• Page 1 of 1
Column names repeated on end of the list.Hi. I was asked by my users if I can add column names also on the end of the list view. Is it possible ?
Re: Column names repeated on end of the list.Do you need to do it dynamically or are there just some additional calculated columns you want to include?
Steve
Re: Column names repeated on end of the list.
I I dont wont to add columns. I just want to repeat column names at the bottom. Like this: Table A: ColumnA ColumnB ColumnC data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 data1 data2 data3 ColumnA ColumnB ColumnC As you can see if there is lot of rows then repeated column name in bottom would help you keep track of where you are. Data in table in question consist mainly of numbers.
Re: Column names repeated on end of the list.The easiest way to do this would be using Javascript (jquery) to copy the thead of the table and insert it into a tfoot in the table.
e.g.
Or something like this. (This actual code is untested). -Steve
Re: Column names repeated on end of the list.I tried to add it in Dataface_List_View.html file and got: Undefined variable: jQuery
So the place isn't ok for this code. Can you suggest a place to add this ?
Re: Column names repeated on end of the list.Ahh.. In 1.3.x and earlier, jQuery is included only where needed. I guess in list view it isn't included yet.
In 2.0 with the g2 theme it is always included. So for 1.3.x, you can do this in two ways. In your block, include both jquery and your script. Jquery is located in js/jquery.packed.js. Or you could use the Javascript tool (inside your block also). e.g. In your delegate class (application delegate for all tables or table delegate for particular table)
Or using the Javascript tool,
Then in your script you could use the Javascript tool's require directive to make it "require" jquery. In js/myscript.js
-Steve
6 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 2 guests |