vraj
Novice

Listview Fixed header and enable horizontal & vertical scroll bar when data grows

How to enable Listview Fixed header and enable horizontal & vertical scroll bar when data grows

0 Kudos
Reply
3 Replies
Widson
Apprentice

Re: Listview Fixed header and enable horizontal & vertical scroll bar when data grows

0 Kudos
Reply
Albarghouthy
Apprentice

Re: Listview Fixed header and enable horizontal & vertical scroll bar when data grows

Hi vraj,


 


I use this script to add a scroll to a list view in a form which makes the header fixed


<script>
$("[name ='Form11 Area Item1']").find('div.scroll-wrapper').css({"height":"100px"});
</script>

Change the name property in the script to the list view name.


Add the script to a data label and check Literal property and uncheck PreventXSS


 


 

Reply
ElvisJacob1
Rookie

Re: Listview Fixed header and enable horizontal & vertical scroll bar when data grows

Hi

 

Try this

<script type="text/javascript">

$( document ).ready(function() {

 

$('.view:eq(0)').css({"overflow": "scroll","width":"2000px"});  

          });

          </script>

 

It worked for me, view:eq(0) zero sepresent which view you want to put a scroll view

 

Regards

ElvisJacob

0 Kudos
Reply