Freeze headers sharepoint lists

-1

I have a list of sharepoint (office365) created with 16 fields, and with many records. I need to know how I could immobilize the header so that when I scroll down it stays fixed and can be viewed from any register?

I tried to create Json code, with examples that I searched for, but it does not work. I have this that was what I found in this link ... But it does not work, since it is another language (that I have obtained from this source ):

<script
src="Link to jquery.js"
type="text/javascript"></script>
<style type="text/css">
<!--
.DataGridFixedHeader { position: relative; top: expression (this.offsetParent.scrollTop);}
-->
</style>
<script type="text/javascript">
$(function(){
var $table = $("TABLE[ID^='{BFD03356-0ACF-4950-9C6C-D772A31E3E46}']:first",
"#MSO_ContentTable");
<!--WRAP TABLE IN SCROLL PANE-->
$table.wrap("<DIV style='OVERFLOW: auto; HEIGHT: " + (screen.height-400) + "px'></DIV>"); <!--FROZEN HEADER ROW--> $("TR.ms-viewheadertr:first", $table).addClass("DataGridFixedHeader");

});

</script>

Could someone tell me what code I can use? I appreciate the help very much.

    
asked by Salva Solbes 30.12.2018 в 20:44
source

1 answer

0

Look at this link in English , it's a script used to create the "sticky headers" or fixed headers, in the SharePoint tables.

I hope it helps you.

    
answered by 09.01.2019 в 11:52