Skip to Content
author's profile photo Former Member
Former Member

Fixed column when scrolling right when using tableview and iterator

Hello again,

I have created a BSP that displays a table. No real rocket science here. But the table has more columns than can be displayed on the screen. So the user has to scroll to the right. Again no biggie. The problem is that the first column on the left contains the description of the data in the row. So when the user scrolls right the description "disappears" off the left side of the screen. Is there a way to make the first column always stay on the left part of the screen. Similar to the ALV and how you can make certain columns (the key columns) not scroll to the left. I am using the HTMLB tableview tag a table iterator(which I love) and MVC. I tried the fixedColumn attribute but that didn't work. Any ideas?

TIA,

Rich

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 10:12 AM

    Have you tried "Wrapping" your description, it makes your table rows a bit ununiformed in appearance but does eliminate the scroll right effect.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 10:48 AM

    Hello Richard,

    Try using the wrapping attribute. Also there is another attribute (Try to test it) that is "fixedColumn" put this attribute to TRUE in the description column.

    Then if it doesnt work try playing with the table width attribute and columns width attribute.

    Thats all

    Cheers

    Ariel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 07, 2004 at 07:33 AM

    Hi Richard,

    for the standard tableview there is no possibility to have this feature of real "fixed columns".

    To partly achieve what you desire ... have you thought about displaying two tableviews next to each other, one holding your "fixed columns", the other one being placed in a scrollable div/layer ...

    Of course, depending on what you want to do with the tableview (editing, ...) this might require a lot of additional coding (also javascript) to make it work smoothly, but if it is a "read-only" tableview try considering it.

    Cheers,

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 07:26 PM

    Hello,

    I did try the fixedColumn attribute but much to my dismay it doesn't do what I had hoped. I can't try "wrapping" the row title column because there can be as many as 350 columns (yes you read that right. Thank goodness for the iterator). I think Craig hit the nail on the head. I may have to put 2 tableview next to each other and yes Craig the users want to enter data in those cells. I have found an IAC (for those of us who still remember the ITS) that does exactly what I want. So I will now go and pick apart that code and see how it is handling it. I wish there was a more elegant solution and if there is I will be sure to post it.

    Cheers,

    Rich

    BTW - I am still open to suggestions if anyone has one

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The only thing with using that really cool IE only CSS solution is that you would have to redefine all the CSS values that go with the tableview and even then it may only work if you build the table completely manually.

      But a very cool solution nonetheless!!!!

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 02:02 AM

    Hey,

    http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

    has worked by using the headInclude tag. I don't all the in's and out's yet but as soon as I do I will post the answer. I just want to make sure no one has any issues with posting the solution.

    As always TIA,

    Rich

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.