Skip to main content

Hello, How can I add a scroll button to an editable list view.

Need to know how to add horizontal scroll capability to an editable list view...This is because I have a long horizontal editable list. I dont want to increase the width of my form but instead add a scroll button to the editable list.....

 

Best regards all,

Tade


I'm not sure this is possible in the way you specifically wish. Another customer has already logged a feature request to allow vertical and horizontal scrolling for smartforms that looks like it's a consideration for the next version.

 

However, I also found this (http://help.k2.com/KB001573#), which is different but is related:

 

K2 smartforms 1.0.2 (4.12165.1575.1) Known Issues List 

When using the Content control and the hosted page employs responsive design the horizontal scrollbar does not show in the Chrome Browser. If the content does not overflow in the direction for which the user has explicitly set the scrollbar to show, it won’t show.
Workaround: Edit the hosted page if possible and alter the styling of the ‘body’ element setting the ‘overflow-x’ and ‘overflow-y’ options to ‘scroll’ as required, where the ‘x’ axis is horizontal and ‘y’ is vertical.
To show the vertical scrollbar, the body element needs to be styled as follows:
<body style-"overflow-y:scroll">

To show the horizontal scrollbar, the body element needs to be styled as follows:    
<body style="overflow-x:scroll">
To show both scrollbars, use both options as above.

Thanks Alyssa_V. I woud try out your input and give a feedback. Cheers...


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


Reply