Forms Data Controls :: How To Set Scroll Bars For GridView
Feb 11, 2011how can I set Scroll bars for grid view.
View 3 Replieshow can I set Scroll bars for grid view.
View 3 RepliesI am trying to put the gridview in a panel or a div and setting the scrollbars = "auto" (panel) and Overflow:auto(divs)
But its not working.
I dont want to set the width of gridview in pixels and so i am using Percentage instead.
Now when i click on edit on the grid view, the gridview does not come up scroll bars but instead the browser horizontal bar is coming.
[Code]....
My listview is larger then my page, and I need to be able to add horizontal scroll bars. How do I do that?
View 2 RepliesI have gridview placed inside panel and allowed paging. I have used the code which is in the link URL...The problem is with the alignment. Is there any solution for this?
View 1 RepliesI have a an asp.net label control on my page.I have set the style to overflow: auto.
What i would like to know, is when there is a lot of text in my label and the vertical scroll bar is showing, is there away i can scroll to the end of the label using javascript?I would like the user to always see the bottom section of the label.
I have a form that allows users to enter replies and then display them. I would like the entry and display fields to be multiline but limit the number af characters and not display the scroll bars??
View 1 Repliesi have a multiline textbox with scrolling enabled and everything works fine in internet explorer but in mozilla firefox it doesnt scroll . whats the problem?
View 3 RepliesI don't think this is possible at all, but does anyone know a way to get 2 vertical scroll bars on a panel? Right now here's the code:
[code]....
There's a GridView inside the panel and it's so wide that scrolling all the way over to the right to scroll down causes the client to lose their position on the page and would like a scrollbar provided on the left (keeping the one on the right) if it's possible, anyone know of a way to do that?
I'm not even sure how to describe this problem to you, so I'll just show you: [URL] How can I get the report to show without scroll bars? There's plenty of space below for the report to expand.
View 9 RepliesI have a page with two updatepanels both using a timer's tick event to do various bits. The script manager is set to conditional updates and the panels are set up to use specified triggers but when the tick event fires for either the page flickers and the scrollbars reset to midway down the page. This renders my application unusuable.
View 4 RepliesI am not sure what has happened here, but I have 3 panels, and these 3 panels are nested inside one large, thus:
<asp:panel id="pnlMain" runat="server" Height="60%" Width="100%">
<div id="div1">
<asp:panel id="panel1" runat="server" Height="100%" width="100" scrollbars="vertical"/>
</div>
<div id="div2">
<asp:panel id="panel2" runat="server" Height="100%" width="100" scrollbars="vertical"/>
</div>
<div id="div3">
<asp:panel id="panel3" runat="server" Height="100%" width="100" scrollbars="vertical"/>
</div>
</asp:panel>
What is happening is that when I add my gridviews to these nested panels, the panel is just getting larger, the scroll bars are not scrolling, in other words the panels are stretching rather than their height staying fixed.
how to implement Insert feature to a grid view?I need to use fields with scroll bar inside of a grid view. Is that possible through the template field?
View 23 RepliesI have a gridview with around 250 columns which are generated automatically except first column which is fixed. Is there any way I can fix the first column but allow horizontal scrolling on remaining columns.
I have only 6 rows in gridview so don't need vertical scroll.Here is my code.
<div id="dvShipmentGrid" style="width: 1000px; padding-right: 10px;
i need to scroll my gridview horizontally but not vertically.I have tried many solution but either it is fixed or scrolling bothways.
View 7 RepliesI have a gridview inside a div and everytime i scroll to the bottom rows of gridview, it throws back to the top of the grid.
<div id="divGvIncidentDetail" runat="server" style="overflow:scroll; min-height: 10px; max-height: 250px;" onscroll="SetDivPosition()">
<asp:GridView ID="gvIncidentDetail" runat="server" ...>
</asp:GridView>
</div>
To prevent it, i tried implementing following javascript code by user Sun Rays:
<script type="text/javascript">
window.onload = function () {
var strCook = document.cookie;
if (strCook.indexOf("!~") != 0) {
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS + 2, intE);
document.getElementById("divGvIncidentDetail").scrollTop = strPos;
}
}
function SetDivPosition() {
var intY = document.getElementById("divGvIncidentDetail").scrollTop;
document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}
</script>
I get the following error when i run the code: Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object Am i missing something? or is there any other better solution to maintain the scroll position
Article here [URL] ....
The code only working for DataList what if I want replace it with ListView just cuz I need my items design responsive ...
I have been looking through endless webpages trying to get a handle on putting a scroll bar on a gridview, and fixing the headers . I have tried following a few examples and had a working demo on a test page, however when I placed the code in the main page on a FormView i have come up with the following error on this procedure
[Code]....
[Code]....
i have a gridview with vertical scrollbar and i have 100 rows in table. How to load 10 rows each time,when i scroll down or up.
View 5 Repliesi want to apply scroll in gridview....because there are many columns and it makes disorder in my design.i found code from ccodeproject and also in this site
<div id="grdCharges" runat="server" style="width:
875px; overflow: auto; height: 160px;"> [code]....
I have to assign the individual color to Column bar chart i tried the below it is working
[Code]....
but i want loop through each chart series item and assign them a color from an array. Is it possible with MS Chart control iam using the Column Bar chart for displaying the data.
My gridview can have several hundred records, and therefore users will have to scroll down to view and edit some of them. The problem is when they want to edit a record that they have to scroll down to, when the page enters edit mode it stays at the top of the page, instead of focusing on the current record, how can I change it to scroll to the correct record in edit mode?
View 3 RepliesI have a gridview with scroll enabled. Means i have a gridview like this-
[Code]....
I want during postbacks scroll position of my gridview will not change. I have tried many articles on the web, but in some scrolling is retained only in IE, in some others scrolling position changes on clicking edit link of gridview. I want a good solution for IE, FF, Chrome
I have seen alot of posts on the inetrnet with the solution to mainatin gridview scroll using an Ajax Update Panel.
Every solution I have seen though seems to have the same problem..as explained they dont work in content forms with master pages...at leat no solution I have seen has worked.
Does anyone know how to resolve this problem of using update panel to maintain gridview scroll with masterpages?
hoe to add scroll in gridview
View 1 Repliesi need to add vertical as well as horizontal scroll bar to grid view. i have read your artical about adding vertical scroll bar. how to add horizontal scroll bar ??
View 1 Replies