.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Positioning scrollbar

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :ASP.Net
Hi..I have a listview with multiple records inside a div whose overflow property has been set to enable scrollbars.  Now I have another search panel in which If i click on a particular item the corresponding item in the listview gets selected. But the problem is that the item gets selected but the user cannot view it if its way down on the list. I also want the scrollbar to move in order to let the user show the selected item. Any help would be appreciated.Thanks.

View Complete Post

More Related Resource Links

Re-positioning an HTML container with javascript onresize with a Master page.


I have an HTML <div> container that I float to the right of a gridview.  When the browser window is maximized, it looks fine.  When minimized, the gridview positions below the floating container and most of the data is pushed off the bottom of the browser - you have to scroll down to see it.

If I position the floating container above the gridview it looks fine in a minimized window, but looks real bad when maximized.

What I want to do is use a javascript: onresize event to re-position the floating container up or down depending on the window.inner.width AND do it with a Master/Content page structure AND do it for only the one page where needed.

I can capture the onresize event and display the window dimensions but haven't figured-out how to do it with a Content page that still uses the Master page.  I think I'm having a very "thick" week...

- Tinker


scrollbar is not showing for sharepoint list with group by view

Hi, have created a Share point 2007 list having a huge data. I have created a group by view by grouping the data with category. My requirement is to show the data as web part on a page. When i did so, while expanding the group inside the web part, the web part is expanding. I want to keep the height and width of the web part fixed so that the layout of the page will not be ugly looking. But though I am putting the option for fixed height and width in the web part setting but I am not able to see the scroll bars. Where as I can see the height and width are fixed but could see a few data instead of all the data with scroll bar.   Please advice me if there is any solution or workaround.Deeptyranjan

Changing Mouse Cursor into Crossed Circle in ListBox-ScrollBar/ScrollViewer(on Drag and Drop).

Hi All,   I have a ListBox with 10 items, the automatic Scrollbar/ScrollViewer is appearing. If i'm dragging an item from the listbox and moving the mouse cursor on top scrollbar/scrollviewer the cusor have to change into CROSSED CIRCLE(means its not a location to drop). Can any one help to do the same, or please let me know if more info needed.   Thanks, Karthikeyan Manickam.

NerdDinner MVC tutorial, map not positioning correctly like completed MVC sample

I have been studying the NerdDinner MVC tutorial for the past week, and I am at step 11 - the part where  adding a Map is introduced.  I have been following the instructions as closely as possible, and I am at the part Integrating the Map with Create and Edit Forms The tutorial runs the sample app at this point and displays how the map should look -- this part being "Host A Dinner".  In the completed sample (which runs correctly for me) the map displays to the right side of the textboxes of Create.aspx, in some kind of container.  But in the sample I am building - per the tutorial - the map displays in the upper left corner of the page, and the container (for the map) displays below the  textboxes on my Create.aspx -- as per the image here:   I tried stepping through the code in the completed sample, but I was not able to see how the map is positioned in the page.  Any suggesions how to fix this problem -- how to position the map correctly on the page -- how to control the positioning of the map -- would be greatly appreciated. Thanks    

Scrollbar disappear when adding an attached file in MOSS 2010

Hi, When adding a new element in my SharePoint list, the vertical scrollbar is OK. But when I click on the attached file button to upload a file and back to the list form, the scrollbar disappears !! It's impossible to access the "save" button at the back of the form. Any issue to that problem ? Best Regards, François

Scrollbar disappear when adding an attached file in MOSS 2010

Hi, When adding a new element in my SharePoint list, the vertical scrollbar is OK. But when I click on the attached file button to upload a file and back to the list form, the scrollbar disappears !! It's impossible to access the "save" button at the back of the form. Any issue to that problem ? Best Regards, François

Problems Positioning Popup Extender After Postback

Please read this entire post before responding and refer to the supplied screen shots to fully understand the problem. There are multiple layers of Ajax controls invovled. On the main page, I have Modal Popup Extender that displays a User Control. Within the User Control is a Popup Control that displays another User Control. User Control #2 which resides on User Control #1 is comprised of a GridView with sorting capabilities. I've got code in place that displays User Control #1 following a postback generated from within it. I've got additional code that displays User Control #2 (the one with the GridView) following a post back. The result is that when User Control #2 is sorted, it remains visible. The problem is that after the postback for User Control #2 ocurrs, the control is not displayed at the coordinates specified in the markup. If I hide it and then redisplay it, it will appear at the specified location. Protected Sub Page_Load() Handles Me.Load If TextBoxShowCompanyFacilitySelector.Text = "-1" Then Dim PopupControlSelectCompanyFacilityId As Object = FormViewContactDetail.FindControl("PopupControlSelectCompanyFacilityId") PopupControlSelectCompanyFacilityId.Show() End If End Sub These screen shots show the desired and actual behaviors.

Positioning of ComboBox in GridView

I have a need to use the ComboxBox as input for multiple GridView Columns, only the last ComboBox displays correctly, the rest are positioned below the row.  I'm attaching a sample source code using Table instead of GridView, since it has the same problem and will display without needing to bind data.  Adding a position relative div around the Combox placed it in the right position; but when attempting to do a select, placed the item list further down and to the right.  Thanks for any help. I am using VS2010 and AJAX Toolkit version 4.1.40412.0. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Experiment2.aspx.cs" Inherits="Materials_InfoTracking.Experiment2" %><%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title></head><body>    <form id="form1" runat="server">        <asp:ScriptManager ID="ScriptManager1" runat="server" />

Absolute positioning

Hi all,I'm having VS 2008 professional. I'm trying to fix absolute positioning for a lable control. In Format menu position is not active when i click on lable? How can I do that or is this option not available in VS 2008?How can I align 2-3 controls as my layout control is not active?How can I use insert layer?Smitha

AutoCompleteExtender positioning problems

Hi all, I can't seem to find an answer to this anywhere so I am trying here. When I don't apply any CSS styles to the properties CompletionListCssClass,  CompletionListItemCssClass and CompletionListHighlightedItemCssClass the completion list displays a nice dropdownlist right below the targeted textbox. However, I am simply looking for a border and a scrollbar after 100 pixels in height (I am allowing 20 items returned). Initially I was using the CompletionListElementID property and pointing it to a DIV placed right below the target textbox. I applied the styles to the DIV (height:100px; overflow:scroll;) and all was well. Even though that produced exactly what I wanted, I noticed that VS 2008 SP1 with .NET 3.5 SP1 was telling me that the CompletionListElementID property is obsolete and I should use the CSS styles. So now I am in a bind because I don't know CSS that well and using some example CSS, that doesn't seem to refer to ANY positioning, the list shows up in odd places...nowhere near the target TextBox. Can anyone tell me what I should do? Can I use the CompletionListElementID property even though I am being warned it is obsolete? It seems to work just fine. I know that I downloaded the latest ToolKit for .NET 3.5 and VS2008 SP1. Thanks for any help...

Scrollbar not working

hello, After refreshing only scrollbar are working.Following code I write in one page and call this page in master page<asp:Panel ID="Pan1" Height="80px" Width="250px"BackColor="#8FBC8F" ScrollBars="Auto" runat="server">        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">            <tr>                <td align="center">                    <asp:Label ID="lblMsg" runat="server" Text="0 Items"></asp:Label>                </td>            </tr>            <tr>                <td>                    <asp:DataList Height="100%&

scrollbar in ie7

how to get rid of the scrollbar in ie7, which appeared even when it is not required.

In CssFriendly adapter Scrollbar is needed in Vertical Menu

Hi all,I have used cssfriendly adapter for creating vertical menu.... as i have more number of submenus and more number of listitems.... i need scrollbar.. in menu as it goes down the browser window..or menu should move up as it hit browser window....I tried "IFRAME" scrollable yes...and many different approach but could not get it....plz anybody can help it out.........

Add a horizontal scrollbar at the top of a report

Hi, I want to know if it's possible to add a horizontal scrollbar at the top of a report? thanks

Horizontal Scrollbar not fully displayed in report window

I have a report (using SSRS 2005) which displays both the vertical scrollbar and horizontal scrollbar.  The report has lots of columns. The problem is that the horizontal scrollbar is only half displayed (height wise).  I've tried resizing the report window but it doesn't change how much of the horizontal scrollbar is displayed. I've tried playing with the report settings (margins, body size, etc) but can't seem to get the entire horizontal scrollbar to be visible.  The users don't like this because the viewable part is hard to grab onto to scroll. How do I fix this? Thanks, John

textbox scrollbar start at bottom instead of top



I have a text box which gets lines added to it quite often in my program.

Is there a way i can make the scroll bar start at the bottom so the user sees the latest additions to the textbox and then can scroll up if they wanted to see earlier strings that were added to the textbox ?

Hope that makes sense and thanks in advance


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend