Click here to Skip to main content
16,015,594 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
See more:
I here by attached my code please help me to set the horizontal scrollbar of the div to middile while loading the page.



ASP.NET
<script type="text/javascript">
    {
        window.onload = function() { val(); };
        function val() {
           
            $("divrpt").scrollLeft(100);
        }
    }
</script>


<div   id="divrpt"  style="overflow:auto;width:750px;height:350px; removed:absolute;" >
   <p><CR:CrystalReportViewer ID="CrystalReportViewer1"  runat="server" 
        AutoDataBind="True" Height="50px" ReportSourceID="CrystalReportSource1" 
        Width="150px" DisplayGroupTree="False" />
    <p>
    <CR:CrystalReportSource ID="CrystalReportSource1"  runat="server">
        <Report FileName="Crystal Reports\CRContactDetails.rpt">
        </Report>
    </CR:CrystalReportSource>
    </p>
    </div>
Posted

1 solution

Use CSS property :
CSS
#divrpt
{
    direction:rtl; 
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900