Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET grid
heyy..
 
I am using a grid in the item template i have a checkbox (grid is in update panel).. But when I scroll the grid then check the check box then the page is jerking and go to top..
 
here is my gird code.. My source code is large ..if you want I will paste my code...
Posted 7-Apr-13 20:53pm
Comments
Vani Kulkarni at 8-Apr-13 1:55am
   
Check if you have set "AutoPostBack=true" for the checkbox.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Set MaintainScrollPositionOnPostback to true in your page directive.
Try this:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>
 

 
--Amit
  Permalink  
v2
Comments
aravindnass at 8-Apr-13 3:25am
   
its not working ,I put this on page(have master page)..when I scroll down the page and check the check box then the page go to first..
_Amy at 8-Apr-13 3:26am
   
Put it in content page also. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 490
1 Maciej Los 305
2 Richard MacCutchan 270
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,834
1 Sergey Alexandrovich Kryukov 7,477
2 DamithSL 5,689
3 Maciej Los 5,329
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411028.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100