How to stop a panel scrolling back to top

Discussion in 'ASP .Net' started by Craig G, Mar 10, 2005.

  1. Craig G

    Craig G Guest

    i have a datagrid within a panel so that the user can scroll (vertically)
    the datagrid rather than page it

    the problem is that when i select (using select button within the datagrid)
    a record the panel refreshes and goes back to the top again.

    is there a way to prevent this occuring and somehow get the panel to remain
    at the position it was scrolled to?

    Cheers,
    Craig
    Craig G, Mar 10, 2005
    #1
    1. Advertising

  2. Hi,

    Try by setting SmartNavigation = True

    Cheers,

    Jerome. M

    "Craig G" wrote:

    > i have a datagrid within a panel so that the user can scroll (vertically)
    > the datagrid rather than page it
    >
    > the problem is that when i select (using select button within the datagrid)
    > a record the panel refreshes and goes back to the top again.
    >
    > is there a way to prevent this occuring and somehow get the panel to remain
    > at the position it was scrolled to?
    >
    > Cheers,
    > Craig
    >
    >
    >
    =?Utf-8?B?RG90TmV0SmVyb21l?=, Mar 10, 2005
    #2
    1. Advertising

  3. Craig G

    Craig G Guest

    thought i was onto a winner there!

    but by setting that in the page derivative then makes the select button on
    the grid not fire!

    "DotNetJerome" <reachjerome@_yahoo.com-remove-the-underscore-after@> wrote
    in message news:...
    > Hi,
    >
    > Try by setting SmartNavigation = True
    >
    > Cheers,
    >
    > Jerome. M
    >
    > "Craig G" wrote:
    >
    > > i have a datagrid within a panel so that the user can scroll

    (vertically)
    > > the datagrid rather than page it
    > >
    > > the problem is that when i select (using select button within the

    datagrid)
    > > a record the panel refreshes and goes back to the top again.
    > >
    > > is there a way to prevent this occuring and somehow get the panel to

    remain
    > > at the position it was scrolled to?
    > >
    > > Cheers,
    > > Craig
    > >
    > >
    > >
    Craig G, Mar 10, 2005
    #3
  4. Craig G

    arskselva

    Joined:
    Aug 1, 2008
    Messages:
    1
    Hi,
    Try by setting Page.MaintainScrollPositionOnPostBack = True

    by
    Selva R
    arskselva, Sep 22, 2009
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert

    Connect Panel Scrolling

    Robert, Jul 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    345
    Robert
    Jul 22, 2003
  2. Pradeep

    Scrolling functionality in Panel

    Pradeep, Aug 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    337
    Pradeep
    Aug 25, 2003
  3. satclk
    Replies:
    0
    Views:
    129
    satclk
    Jun 15, 2004
  4. Mike Owen

    Stop page going back to the top when submitting

    Mike Owen, Nov 1, 2005, in forum: ASP .Net Web Controls
    Replies:
    8
    Views:
    245
    Steven Cheng[MSFT]
    Nov 9, 2005
  5. peppeprof
    Replies:
    4
    Views:
    129
    peppeprof
    May 15, 2004
Loading...

Share This Page