AJAX :: Vetical Scroll Not Woking Properly While Updating Gridview?
Aug 19, 2010
In one my web page i've an updatepanel which contains a gridview .The gridview displays huge amt of data (4 pages of data) and the updatepanel refreshes for every 1 sec,for tht i've used timer control, to get the updated data from the server.for that i've used one timer. The problem is ,the webpages scroll bar(both horizontal and vertical) is repositioning to the starting position after every refresh.
[Code]....
View 2 Replies
Similar Messages:
Sep 14, 2010
I have a Gridview with these parameters:
<asp:GridView runat="server" ID="ItemGrid" CssClass="Grid"
AutoGenerateColumns="false"
AutoGenerateDeleteButton="true" OnRowDeleting="RowDeleting"
AutoGenerateEditButton="true" onRowEditing="RowEdit"
OnRowCancelingEdit="CancelRowEdit" onRowUpdating="RowUpdating"
DataKeyNames="Item_ID">
<Columns>
<asp:BoundField HeaderText="Item" DataField="Item"/>
<asp:BoundField HeaderText="Family" DataField="Family"/>
<asp:BoundField HeaderText="Structure" DataField="Structure"/>
<asp:BoundField HeaderText="Updated" ReadOnly="true" DataFormatString="{0:d}" DataField="Updated"/>
</Columns>
</asp:GridView>
On updating it calls:
protected void RowUpdating(object sender, GridViewUpdateEventArgs e){
int Item_ID = (int)this.ItemGrid.DataKeys[e.RowIndex][0];[code]...
It generates the Update/Edit/Delete buttons, my Delete function is working exactly how I want and the 'Edit' button generates editable TextBoxes as it should.
My problem is in the updating part, the strings Item, Family, Structure are getting the old values, not the new values I put in the generated text boxes.If I hard code in values they are updated to the database and the DateTime.Now is always updating correctly in the database so the update query is working.
I've been looking at this/reading forums testing things for a couple days now. I'm sure I'm just missing something simple that I have overlooked.
Edit:It has been answered but for those who were curious this is my dataBind();
protected void dataBind()
{
ItemTableAdapter taItem = new ItemTableAdapter();
this.ItemGrid.DataSource = taItem.GetActive();
this.ItemGrid.DataBind();
}
View 3 Replies
Jul 5, 2013
How to set scroll using css in gridview without update panal
View 1 Replies
Apr 27, 2010
I have a Gridview set up so when a user clicks the various buttons it sorts the results. I have a couple problems. Right now the way i have the viewStates set up, it is only working when the buttons are clicked twice. I Was also wondering how to set up the viewstates so it binds properly when the editing and updating. I have read up on ViewStates and I am still a bit confused.
[Code]....
View 5 Replies
Feb 1, 2011
I've just installed MVC 3 and have the following problem. Even if I try to run the sample project, that is included in MVC 3 installation, when I go to the Register form, only the Required attribute causes validation. The Email Format attribute doesn't work,which means I can enter non-email string into the email field and it submits the form without any error messages.
View 6 Replies
Mar 1, 2010
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?
View 1 Replies
Aug 27, 2010
I have 2 gridviews in an update panel that for some reason will not update. There is no data entry, paging, sorting going on, the data is just there to be displayed. I'm using a timer that initiates every 5 minutes to trigger the updatepanel. I also have an updatepanel on an additional page where I am also using a trigger to fire the updatepanel with 2 charts and 1 oneline/column gridview. The 2 charts update just like they are supposed to however the gridview does not. Here is the code for the 2 Gridview aspx page:
[Code]....
Does anyone know the solution to this issue or if Gridviews just don't refresh in UpdatePanels.
View 7 Replies
Mar 8, 2011
I have a very simple application that works almost all the time. I am using an UpdatePanel. My script manager is configured to enable partial rendering. My UpdatePanel is configured for conditional update mode. My asynchronous trigger is a timer that runs every 3 seconds. I track unhandled exceptions in the database. I am not getting any unhandled exceptions. Nor am I getting managed exceptions. Now, I had two users side by side running the application today. I had one record in the data queue. The first user did not get updates; her grid did not update. The second user did get updates. The only difference was that the first user was logged in for a long period of time. The second user logged in just before the test. I reviewed the IIS log file and both users were polling the page every 3 seconds for the same data. So why didn't the first user's grid update? The code follows.
<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="30" EnablePartialRendering="true"></asp:ScriptManager>
[Code]....
In my code behind I have the following timer logic. [Code]....
View 3 Replies
May 31, 2010
I have a gridview inside an updatepanel.After updating the gridview, accessing the individual rows does not seem to give the right row. For example:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow row = ((e.CommandSource as Control).NamingContainer as GridViewRow);
Row from the above code gives the values from the gridview before the gridview is refreshed/updated.
View 5 Replies
Jul 9, 2010
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 Replies
Dec 30, 2010
Ajax calendar control not working properly with content place holder of Master Page.Most of time Calender Control hides when mouseover with out changing date in content place holder of Master Page.same code works in normal aspx pages.
View 2 Replies
Jul 14, 2010
I 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.
View 1 Replies
Mar 17, 2011
i have a update panel and when a link button is fired i need to set the scroll position to the top. i need this to happen in the code behind, i have tried the following but it wont work.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "srcoll_0", "window.scrollTo(0, 0);", true);
View 3 Replies
Feb 7, 2010
i am using an div tag for that i am keeping an scroll bar. which is an slider control. now here i need to replace the vertical line image with my own image . and the scroll image to. so it possiable to achive this in the slider control what we are using
View 1 Replies
Jan 2, 2010
I am using the Html Editor Ajax Control Toolkit for. Net 3.5 and I need as a va text being typed and reach the lateral borders of the editor for him to play next line and do not let avontade type and add a scroll horizoltal.In short without horizontal scroll
View 4 Replies
Mar 30, 2010
I've got a site that uses an Accordion, it has AutoSize="Limit" and the height is set to 600, however, when rendered, the Accordion div style is set to:"overflow-x: auto; height: 600px; overflow: hidden;"Does anyone know why this is the case? My understanding is that an AutoSize value of Limit should render style of "overflow-y: auto;" if not "overflow: auto;"?I tried setting the width to see if that makes any difference, but it still has "overflow: hidden".At the moment I have a work around which places the Accordion (with AutoSize="None") in a div with a style of "height: 420px; width: 750px; overflow: auto;", but I'm surprised that this issue exists and would prefer if I didn't have to use this work around.
Accordion tag:
[Code]....
Rendered div:
[Code]....
View 2 Replies
May 7, 2015
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 ...
View 1 Replies
Mar 17, 2010
I would like to create an animation effect in order to have a vertical scroll of my images, the scroll must have a pause from an image to another. I have started with this, but I have some problems:
[Code]....
1. how center my image exactly in the div? Actually it is "near" it but not "in" it!
2. When the image move up it moves in the window OVER the div, not inside (so it doesen't disappeare when move up)
3. how realize the start-stop-start moving of the effect? Actually it begin at the load event of the page and then finish!
View 1 Replies
Sep 2, 2010
I have an ajax calendar in the middle of my page. I already wrapped it in a div with position:relative but the calendar doesn't show up unless the scrollbar is at the bottom.
View 4 Replies
Apr 21, 2010
on a desktop or laptop the pop up extender seems to scroll fine
but when i visit the site on a netbook the popup stays static
on the screen and I cant dismiss it.
repositononwindowsresizeand scroll is set which i think i default
View 1 Replies
Jul 2, 2013
I have a gridview on modelpopup then I have added the more data in gridview some data and pagination does not show on the bottom side of the gridview i.e I have to set the scroll for shows the all data from grid view...
View 1 Replies
Sep 11, 2013
I have Gridview inside div and i achieved the gridview scroll with the div. but i am struggling with reducing the space between gridview and scroll bar. below is my code and screen print also attached.
Code:
<div id="divGrid">
<div style="overflow-x: auto; width: 800px; height:360px;">
<asp:GridView ID="gvReport" runat="server" AutoGenerateColumns="true" EnableViewState="false"
AllowSorting="false" EmptyDataText="No Data." AllowPaging="false" PageSize="50"
ShowFooter="false" GridLines="Both">
[code]...
View 5 Replies
Jan 15, 2010
I've got a modal popup and when it loads contents that are taller than the browser height I am unable to scroll down to view the rest of the information. Instead the background can scroll but the popup won't, I'd like to have the popup stay in place so the users can see the bottom of the modal.
View 4 Replies
Jun 13, 2010
the dropdownextender works fine until I scroll down the page, see the following screenshots.
View 2 Replies
Feb 13, 2011
I'm using the Ajax control toolkit Combo box for filtering purpose. If the number of items in the combo box is more and when i try to select an item in the drop down list, the scroll bar in the list automatically flickers in Internet explorer.I read the known issues section in the Asp.Net Ajax control toolkit website, and they say that When ListItemHoverCssClass is specified and the ComboBox list is scrollable, highlighting a list item will cause the scrollbar to flicker when using the Internet Explorer web browser. To avoid this issue, do not specify the ListItemHoverCssClass property.Am not using any ListItemHoverCssClass Property but still it flickers. Please help me on any work around to solve this. I know Auto Complete extender is a best solution instead of combo box, but the clients need combox that should list everything along with editing in the text box.
View 1 Replies