Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 887591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:15:12+00:00 2026-05-15T13:15:12+00:00

I want to Set the Horizontal Scrollbar slider to the right without using css

  • 0

I want to Set the Horizontal Scrollbar slider to the right without using css direction:”ltr” or dir=”ltr” or an asp:Panel direction=”rightToLeft”….

i just want to access the object that controls the Horizontal scrollbar slider to give it the position.
from aspx page or the aspx.cs.

aspx page :

<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/BeginScrollFromRight.js"></script> . . .
<body id="body" style="overflow:auto; height:100%;width:100%;"> . . . </body>

js page :

function BeginScrollFromRight() 
{
  $("#body").scrollLeft($(window).width());
}

I need to have the same effect for the direction:rtl but only for the horizontal scrollbar because other object are not supported when using direction:rtl

<td id="tdView" runat="server" dir="ltr" align="center">
                        <table onclick="hideMenusComplex();" oncontextmenu="hideMenusComplex();" id="tblView" runat="server">
                            <tr>
                                <td>
                                    <asp:Label ID="lblView" runat="server" ForeColor="#5E82D6" Visible="false"><%= translate("View : ") %></asp:Label>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <cc1:Combobox  AlignContainer="Center" ID="ddlViews" runat="server"  OnClientChange="onChangeValue()"
                                        FolderStyle="../EsStyles/ComboXpBlue" AutoPostbackEnable="false" Width ="200">
                                    </cc1:Combobox>
                                </td>
                                 <td>
                                    <asp:Label ID="lblViewArabic" runat="server" ForeColor="#5E82D6" Visible="false"><%= translate("View : ") %></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>

This is the code and the ddlViews is the dropdown list that is opening in a wrong way, the dropdown list is not opening under the control is opening on the left of the control.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:15:12+00:00Added an answer on May 15, 2026 at 1:15 pm

    For languages the read right-to-left, direction: rtl is really the only way that will work well, in the end.

    If you just want to scroll all the way to the right, jQuery JavaScript like:

    $("#YourContentDiv").scrollLeft($("#YourContentDiv").width());
    

    or:

    $(window).scrollLeft($(window).width());
    

    will do it.

    .
    In case you are new to jQuery, you can add it to your page, like this.:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        function jQueryMain ()
        {
            $("#YourContentDiv").scrollLeft($("#YourContentDiv").width());
    
            $(window).scrollLeft($(window).width());
        }
    
    
        $(document).ready (jQueryMain);
    </script>
    

    .
    PS: jQuery takes most of the cross-browser hassle out of JavaScript like this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.