Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to stop a panel scrolling back to top

Reply
Thread Tools

How to stop a panel scrolling back to top

 
 
Craig G
Guest
Posts: n/a
 
      03-10-2005
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?RG90TmV0SmVyb21l?=
Guest
Posts: n/a
 
      03-10-2005
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
>
>
>

 
Reply With Quote
 
 
 
 
Craig G
Guest
Posts: n/a
 
      03-10-2005
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:(E-Mail Removed)...
> 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
> >
> >
> >



 
Reply With Quote
 
arskselva arskselva is offline
Junior Member
Join Date: Aug 2008
Posts: 1
 
      09-22-2009
Hi,
Try by setting Page.MaintainScrollPositionOnPostBack = True

by
Selva R
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
smooth scrolling & auto scrolling sillyputty Firefox 1 08-24-2007 02:10 AM
Stop page going back to the top when submitting Mike Owen ASP .Net Web Controls 8 11-09-2005 01:40 AM
How to Resize the back ground image when scrolling the panel satclk ASP .Net Web Controls 0 06-15-2004 12:13 PM
js code execution causes scrolling back to top? peppeprof Javascript 4 05-15-2004 11:00 AM
Connect Panel Scrolling Robert ASP .Net 0 07-22-2003 11:36 AM



Advertisments