I have a RadGrid with a GridButtonColumn column that, when clicked, makes visible and populates some information in a panel below the grid.
And the code behind
What I would like to do is also, when this GridButtonColumn is clicked also scroll down to the panel or anchor and bring it in to view. I have no idea how to do this in ItemCommand, can anyone help?
<telerik:RadGrid runat="server" ID="RadGridDocuments" ItemStyle-VerticalAlign="Top" AllowPaging="False" AllowSorting="True" ShowGroupPanel="True"> <%-- etc... --%> <telerik:GridButtonColumn CommandName="viewHistory" Text="View History" UniqueName="viewHistory"> </telerik:GridButtonColumn> <%-- etc... --%></ telerik:RadGrid > <telerik:RadAjaxPanel ID="pnlViewHistory" runat="server" Visible="false" Height="200px" Width="300px"> <a href="#anchor"> </a> <%-- other stuff --%></telerik:RadAjaxPanel> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGridDocuments"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridDocuments" /> <telerik:AjaxUpdatedControl ControlID="pnlViewHistory" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>And the code behind
Private Sub RadGridDocuments_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGridDocuments.ItemCommand Select Case e.CommandName Case "viewHistory" showHistory(e) Case 'more commands follow End Select End SubWhat I would like to do is also, when this GridButtonColumn is clicked also scroll down to the panel or anchor and bring it in to view. I have no idea how to do this in ItemCommand, can anyone help?