Freeze Header row in neoTable - Forum

Forum Navigation
You need to log in to create posts and topics.

Freeze Header row in neoTable

How can we freeze header row in neoTable?

I don't understand your question @asmat
Do you mean pagination?
Please show an example.

I have a sample table with more than hundred rows, the container of this table has scroll bar

I have meant whenever  I come down with scroll, the row header does not  move, should be Residing(freeze).

For more information you can visit this link.

 

Let me do some experiments to see if I can find the best way to achieve this.
Is there any reason for not using pagination instead of a scroll?

Regards.

Please try adding this CSS into Project > Properties > Styles

tbody {
    display:block;
    height:200px;
    overflow:auto;
}
thead, tbody tr {
    display:table;
    width:100%;
    table-layout:fixed;
}
thead {
    width: calc( 100% - 1.2em );
}

You will probably want to set a fixed with for each column on neoTableSetColumn command.
Change the height on the third line to whatever value you need.
Let me know if it works for you.
Regards.

 

Yes, the above css code work for me perfect. This is something i need that.

Thank you!

luishp has reacted to this post.
luishp