Have allowpaging true, just added some command buttons in the layout template. Problem is, when I click a bottom button, Next for example, the page scrolls back down to bottom where the button is clicked. It's in a dnn module so not sure if that has anything to do with it. On a standalone site I don't have this issue with a similar radlistview:
Any ideas how to force it to scroll to the top of the page? javascript window.scrollTo(0, 0); doesn't even do it.
How do you do the Format Code Block snippet anyway?
<div style="float: right; margin-left: 30%;">
<asp:Button runat="server" ID="Button1" CommandName="Page" CommandArgument="First"
Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
<asp:Button runat="server" ID="Button2" CommandName="Page" CommandArgument="Prev"
Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
<span style="vertical-align: top; position: relative; top: 4px">Page
<%#Container.CurrentPageIndex + 1 %>
of
<%#Container.PageCount %></span>
<asp:Button runat="server" ID="Button3" CommandName="Page" CommandArgument="Next"
Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
<asp:Button runat="server" ID="Button4" CommandName="Page" CommandArgument="Last"
Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
</div>
Any ideas how to force it to scroll to the top of the page? javascript window.scrollTo(0, 0); doesn't even do it.
How do you do the Format Code Block snippet anyway?
<div style="float: right; margin-left: 30%;">
<asp:Button runat="server" ID="Button1" CommandName="Page" CommandArgument="First"
Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
<asp:Button runat="server" ID="Button2" CommandName="Page" CommandArgument="Prev"
Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>" />
<span style="vertical-align: top; position: relative; top: 4px">Page
<%#Container.CurrentPageIndex + 1 %>
of
<%#Container.PageCount %></span>
<asp:Button runat="server" ID="Button3" CommandName="Page" CommandArgument="Next"
Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
<asp:Button runat="server" ID="Button4" CommandName="Page" CommandArgument="Last"
Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>" />
</div>