468,104 Members | 1,301 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,104 developers. It's quick & easy.

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 2705
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Steve Loper | last post: by
2 posts views Thread by antonyliu2002 | last post: by
reply views Thread by Phillip Ian | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.