Skip to Content
0
Jun 24, 2009 at 02:49 PM

How to fix the column width in a table in htmlb tableview control

48 Views

HI Experts,

I have an issue with my htmlb table view controller. I have created a custom iView with a htmlb table view control and placed it in quick navigation window.

When data in columns exceeds, I am getting horizontal scroll bar and column,table are getting extened. I don't want column size increases when text length increses. Instead when lenght of the text incrases in a column, I want the text displyed in multiple columns.

I have tried for this as below.

<hbj:tableView 
    id="statTable"
    model="bean.stattableModel"
    design="ALTERNATING"
    headerVisible="false"
    footerVisible="false"
    fillUpEmptyRows="false"
    navigationMode="BYPAGE"
    selectionMode="NONE"
    headerText="Report List"
    visibleFirstRow="1"
    visibleRowCount="10"
 width="100%">

<%
     stattableModel.getColumn("D").setWidth("5px");
     stattableModel.getColumn("D").setWrapping(false);//tried true aswell
     stattableModel.getColumn("H").setWidth("px");
     stattableModel.getColumn("H").setWrapping(false);
%>

No change happen ever after I used the above code.

Any one has the idea, how make it work.

Thanks in Advance,

Chinna.