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.