cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How do I fix the Table Column Header?

Former Member
0 Likes
840

Hi all,

I have a requirement. I need to fix the Table Column Header in a particular position such that it can be seen on the screen always. i.e The Header should be visible even when the user scrolls down to the bottom of the page. Hence, I created a new container for the headers and put seperate TextViews for the column headers.

But, I am not able to do the alignment properly by adjusting the width of indivisual elements.

How can I achieve proper alignment. Or, is there any other way to fix the Table Column Header such that it is visible always?

Any help will be appreciated!

Regards

Kishan

Edited by: kishan chandranna on Mar 16, 2009 7:32 AM

View Entire Topic
Former Member
0 Likes

Hi Kishan,

If you are not using version CE then it's bit tedious job.

There is no way to set the header of table.

Although you can attain it.

First you need to create 2 table.

Table 1: Holds the Labels/Headers

Table 2: data

Hide data fields of each cell in table 1 and Header fields of each cell in table 2.

Now, fix the length of each cells in both the table. This will fix your each column.

Adjust width and other properties of each cell as required.

You have to deploy and check the alignment. This process may take few hrs.

This is the only way to set the header.

Alternatively:

You can also provide tool tips to text fields. But tool tip option is only available with text box.

Regards,

Abhijeet

Former Member
0 Likes

Hi Abhijeet,

Thanks for the suggestion. If I go according to your first suggestion, won't it hinder the performance of my application. Suppose the table has 300 odd rows, it will have to load it twice and hence the performance will be lowered considerably.

Regards

Kishan

pravesh_verma
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Kishan,

If following the steps which Abhijeet has suggested solves you issue of alignment then I guess you problem is solved.

1) Just create 2 table as he suggested.

2) Create a dummy node structure as that of actuall node structure.

3) Bind the table in first contianer with this dummy node.

and rest will be the same.

This table which is binded with the dummy node will never get populated as there is not logic written for it. Therefore there will be no performance hit even if the number of records in actual table is large.

However follow this only if your alignment issue is resolved.

I hope this helps!

Thanks and Regards

Pravesh

Former Member
0 Likes

Hi Krishna,

Yes, it will take some time but any ways data node is loaded when bapi is executed.

I hope you are not manipulating the table entries and it's display only.

As, there is no other way to set the table header.

We had the same requirement and we had dropdowns, inputbox, checkbox with manipulations.

Loading time was there.

Alternatively:

As, suggested you can link source of first table to dummy node.

And label to description of your table.

Regards,

Abhijeet