473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to remove AJAX style postback when paging a gridview.

I have a GridView that has paging enabled. Each item (as defined in an
ItemTemplate) includes several controls which have operations i would
like to Atlas-enable. Everything is working well except when I page the
GridView (the paging controllers are in the gridview's footer). The
webpage doesnt scroll back to the top of the page, so when paging
through the GridView the user is always looking at the last 4-5 items
on the page. My current markup looks something like:

<UpdatePanel>
<ContentItem>
<GridView...>
<ItemTemplate...>
<Controls_that_need_to_be_atlas_enabled>
</ItemTemplate>
<PagerSettings/>
</GridView>
</ContentItem>
</UpdatePanel>

I tried to put the <UpdatePanelwithin the <ItemTemplateand even
inside the <Control...however Visual Studio 2005 complains that an
UpdatePanel cannot exist inside an <ItemTemplate>

I havent tired adding triggers, however I dont know how well that will
work because the Controls/events that need to be tied to the triggers
exist within the <Controls>.

Any insight on how to keep paging from making Atlas style postbacks
would be appreciated.

Thanks

Aug 14 '06 #1
1 2926
Not using AJAX style callbacks on a GridView is the default, if you don't set
EnableSortingAndPagingCallbacks="True" then it should not use them. You
could try explicitly setting EnableSortingAndPagingCallbacks="False" but this
is the default.

"da************@gmail.com" wrote:
I have a GridView that has paging enabled. Each item (as defined in an
ItemTemplate) includes several controls which have operations i would
like to Atlas-enable. Everything is working well except when I page the
GridView (the paging controllers are in the gridview's footer). The
webpage doesnt scroll back to the top of the page, so when paging
through the GridView the user is always looking at the last 4-5 items
on the page. My current markup looks something like:

<UpdatePanel>
<ContentItem>
<GridView...>
<ItemTemplate...>
<Controls_that_need_to_be_atlas_enabled>
</ItemTemplate>
<PagerSettings/>
</GridView>
</ContentItem>
</UpdatePanel>

I tried to put the <UpdatePanelwithin the <ItemTemplateand even
inside the <Control...however Visual Studio 2005 complains that an
UpdatePanel cannot exist inside an <ItemTemplate>

I havent tired adding triggers, however I dont know how well that will
work because the Controls/events that need to be tied to the triggers
exist within the <Controls>.

Any insight on how to keep paging from making Atlas style postbacks
would be appreciated.

Thanks

Aug 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Loper | last post by:
I am developing a control in ASP.NET 2.0 that is derived from GridView. This control handles paging on its own and thus renders custom paging buttons. It also add some other functionality to the...
0
by: John Smith | last post by:
I still have not gotten this damn thing figured out and I'm asking for help one last time before I give up on it. I have a user control that contains a paged gridview control. The master page...
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
0
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to...
1
by: gabe | last post by:
How do you call a client side javascript callback method after an update panel has posted back to the server? I have two update panels (A + B) with a gridview in each panel. GridView B has a...
1
by: Matt Winward | last post by:
Hi all. I've got a little problem with my gridview paging and I'm not sure how to resolve it. Basically, I'm handling all aspx requests with my own httphandler. This does a url rewrite, so...
4
by: pablorp80 | last post by:
Hello, Here is what I need: I need the focus and the cursor set to a textbox named txtGT, every time no matter if it is the first page load or whether it is a postback. Here is the problem: I...
1
by: wagswvu | last post by:
I am trying to enclose SPGridView inside an UpdatePanel control in a user control page (.ascx), however whenever I click on the paging links for the grid, it still postbacks instead of partial page...
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.