Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Scroll Bar Position

Scroll Bar Position

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
9 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ajeet mittal
    wrote on last edited by
    #1

    I am using ASP.NET 2.0 with C#. In my application there is a DIV which style is OVERFLOW: auto. A horizontal scrollbar appear but it alignment by default is left. I want its default alignment to be right. Can any one help in this regards. Thanks

    S 1 Reply Last reply
    0
    • A Ajeet mittal

      I am using ASP.NET 2.0 with C#. In my application there is a DIV which style is OVERFLOW: auto. A horizontal scrollbar appear but it alignment by default is left. I want its default alignment to be right. Can any one help in this regards. Thanks

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Could you post your html code ?

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      A 1 Reply Last reply
      0
      • S Sandeep Akhare

        Could you post your html code ?

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        A Offline
        A Offline
        Ajeet mittal
        wrote on last edited by
        #3

        <div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;">

        S 1 Reply Last reply
        0
        • A Ajeet mittal

          <div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;">

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Sorry was busy in my work try out this

          Is that you want ? let me know Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          A 1 Reply Last reply
          0
          • S Sandeep Akhare

            Sorry was busy in my work try out this

            Is that you want ? let me know Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            A Offline
            A Offline
            Ajeet mittal
            wrote on last edited by
            #5

            Thanks a lot. i need this solution what u send. but it change my dropdown alignment too. how can i mentaion my dropdown alignment as it is in default and change only DIV direction. Actully div containing one dropdown. I am sending complete code <div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl"> <asp:DropDownList ID="lst" runat="server"> asp:ListItemSt. Xavier's College, Ahmedabad</asp:ListItem> asp:ListItemSt. Joseph's College, Bangalore</asp:ListItem> asp:ListItemSt. Xavier's College, Mumbai</asp:ListItem> asp:ListItemSacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem> asp:ListItemResearch Foundation for Science, Technology and Natural Resource Policy, Bangalore</asp:ListItem> asp:ListItemJawaharlal Nehru University (JNU), New Delhi</asp:ListItem> asp:ListItemISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem> asp:ListItemDefence Electronics Research Laboratory, Hyderabad</asp:ListItem> asp:ListItemAll-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem> asp:ListItemIndian Institue of Management, Ahmedabad</asp:ListItem> </asp:DropDownList> </div> Thanks a lot.

            S 1 Reply Last reply
            0
            • A Ajeet mittal

              Thanks a lot. i need this solution what u send. but it change my dropdown alignment too. how can i mentaion my dropdown alignment as it is in default and change only DIV direction. Actully div containing one dropdown. I am sending complete code <div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl"> <asp:DropDownList ID="lst" runat="server"> asp:ListItemSt. Xavier's College, Ahmedabad</asp:ListItem> asp:ListItemSt. Joseph's College, Bangalore</asp:ListItem> asp:ListItemSt. Xavier's College, Mumbai</asp:ListItem> asp:ListItemSacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem> asp:ListItemResearch Foundation for Science, Technology and Natural Resource Policy, Bangalore</asp:ListItem> asp:ListItemJawaharlal Nehru University (JNU), New Delhi</asp:ListItem> asp:ListItemISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem> asp:ListItemDefence Electronics Research Laboratory, Hyderabad</asp:ListItem> asp:ListItemAll-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem> asp:ListItemIndian Institue of Management, Ahmedabad</asp:ListItem> </asp:DropDownList> </div> Thanks a lot.

              S Offline
              S Offline
              Sandeep Akhare
              wrote on last edited by
              #6

              I didn't understand what you are trying to do Why are you using div tag and How your drop down list should display ?

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              A 1 Reply Last reply
              0
              • S Sandeep Akhare

                I didn't understand what you are trying to do Why are you using div tag and How your drop down list should display ?

                Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                A Offline
                A Offline
                Ajeet mittal
                wrote on last edited by
                #7

                Actully my requirement is like that. in my asp.net page there is a dropdown.which is filled at runtime. we fix the size of dropdown.this is because space and layout requirement. if dropdown value greter than it size define.it not shows complete value. to fix it i need a horizontal scrollbar. but dropdown not having it. so that i am using div as container for dropdown which having scrollbar. now the problem is if the scrollbar position is left dropdown doesnot show arrow sign. to make arrow sign visiable i set scrollbar direction to right as u give the solution.but it change the direction of dropdown too. this is the complete problem. now can u suggest me,how i will solve the problem. thanks & regards

                S 1 Reply Last reply
                0
                • A Ajeet mittal

                  Actully my requirement is like that. in my asp.net page there is a dropdown.which is filled at runtime. we fix the size of dropdown.this is because space and layout requirement. if dropdown value greter than it size define.it not shows complete value. to fix it i need a horizontal scrollbar. but dropdown not having it. so that i am using div as container for dropdown which having scrollbar. now the problem is if the scrollbar position is left dropdown doesnot show arrow sign. to make arrow sign visiable i set scrollbar direction to right as u give the solution.but it change the direction of dropdown too. this is the complete problem. now can u suggest me,how i will solve the problem. thanks & regards

                  S Offline
                  S Offline
                  Sandeep Akhare
                  wrote on last edited by
                  #8

                  Ok now i understood <td><div id="divCollegeNames" style="OVERFLOW:auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl" > <span style="direction:ltr"> <asp:DropDownList ID="lst" runat="server" > asp:ListItemSt. Xavier's College, Ahmedabad</asp:ListItem> asp:ListItemSt. Joseph's College, Bangalore</asp:ListItem> asp:ListItemSt. Xavier's College, Mumbai</asp:ListItem> asp:ListItemSacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem> asp:ListItemResearch Foundation for Science, Technology and Natural Resource Policy, Bangalore</asp:ListItem> asp:ListItemJawaharlal Nehru University (JNU), New Delhi</asp:ListItem> asp:ListItemISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem> asp:ListItemDefence Electronics Research Laboratory, Hyderabad</asp:ListItem> asp:ListItemAll-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem> asp:ListItemIndian Institue of Management, Ahmedabad</asp:ListItem> </asp:DropDownList> </span> </div> Check this one i think this what you want to display i don't know it is right way or not Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                  A 1 Reply Last reply
                  0
                  • S Sandeep Akhare

                    Ok now i understood <td><div id="divCollegeNames" style="OVERFLOW:auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl" > <span style="direction:ltr"> <asp:DropDownList ID="lst" runat="server" > asp:ListItemSt. Xavier's College, Ahmedabad</asp:ListItem> asp:ListItemSt. Joseph's College, Bangalore</asp:ListItem> asp:ListItemSt. Xavier's College, Mumbai</asp:ListItem> asp:ListItemSacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem> asp:ListItemResearch Foundation for Science, Technology and Natural Resource Policy, Bangalore</asp:ListItem> asp:ListItemJawaharlal Nehru University (JNU), New Delhi</asp:ListItem> asp:ListItemISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem> asp:ListItemDefence Electronics Research Laboratory, Hyderabad</asp:ListItem> asp:ListItemAll-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem> asp:ListItemIndian Institue of Management, Ahmedabad</asp:ListItem> </asp:DropDownList> </span> </div> Check this one i think this what you want to display i don't know it is right way or not Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                    A Offline
                    A Offline
                    Ajeet mittal
                    wrote on last edited by
                    #9

                    Thanks a lot. I got exect solution. what i need. thanks & regards Ajeet Mittal ajeetmittal@gmail.com

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups