Scroll Bar Position
-
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
-
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
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... "
-
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... "
<div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;">
-
<div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;">
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... "
-
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... "
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.
-
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.
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... "
-
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... "
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
-
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
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... "
-
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... "
Thanks a lot. I got exect solution. what i need. thanks & regards Ajeet Mittal ajeetmittal@gmail.com