This is a migrated thread and some comments may be shown as answers.

RadGrid with HyperLink column and Paging- How to remember the page number

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 03 Aug 2015, 05:55 PM

I have a RadGrid with a HyperLink column and using Paging.

When a user clicks on the Hyperlink column, they will be directed to another ASP.Net page that displays all the detailed data for that record.  On that page, there is a button for them to click on to bring them back to the page with the RadGrid on it.  When the user clicks on the button and brought back to the page with the RadGrid, the RadGrid starts back at page 1 no matter what page the user was on before.

I need it to remember the page number when they click on the HyperLink column and then when the user clicks on the button to bring them back to the page with the RadGrid on it, the RadGrid will be reloaded and set to the page number they came from. 

How to do that?

Here is how my RadGrid is:

        <telerik:RadGrid ID="rgEDILog" runat="server" GroupPanelPosition="Top" Height="326px" Width="950px" AutoGenerateColumns="False" AllowPaging="True" PageSize="2000">
            <ExportSettings>
                <Pdf AllowPrinting="False">
                </Pdf>
            </ExportSettings>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                
            </ClientSettings>
            <MasterTableView>
                <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" />
                <Columns>
                    <telerik:GridHyperLinkColumn AllowSorting="False" DataTextField="EDI_KEY" FilterControlAltText="Filter column7 column" HeaderText="EDI Key" UniqueName="column7" DataNavigateUrlFields="EDI_KEY,SERIAL_NO,TRACKING_NO,SUPPLIER_CODE,MILL_COIL_NO,MAILBOX_NAME,EDI_ACTION,ENTRY_DATE" DataNavigateUrlFormatString="CustomReports9b?EDI_KEY={0}&SERIAL_NO={1}&TRACKING_NO={2}&SUPPLIER_CODE={3}&MILL_COIL_NO={4}&MAILBOX_NAME={5}&EDI_ACTION={6}&ENTRY_DATE={7}">
                    </telerik:GridHyperLinkColumn>
                    <telerik:GridBoundColumn DataField="SERIAL_NO" FilterControlAltText="Filter column column" HeaderText="Serial No." ReadOnly="True" UniqueName="column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TRACKING_NO" FilterControlAltText="Filter column1 column" HeaderText="Tracking No." ReadOnly="True" UniqueName="column1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SUPPLIER_CODE" FilterControlAltText="Filter column2 column" HeaderText="Supplier Code" ReadOnly="True" UniqueName="column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MILL_COIL_NO" FilterControlAltText="Filter column3 column" HeaderText="Mill Coil No." ReadOnly="True" UniqueName="column3">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MAILBOX_NAME" FilterControlAltText="Filter column4 column" HeaderText="Mailbox Name" ReadOnly="True" UniqueName="column4">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DOC_NAME" FilterControlAltText="Filter column5 column" HeaderText="Doc Name" ReadOnly="True" UniqueName="column5">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="EDI_ACTION" FilterControlAltText="Filter column6 column" HeaderText="EDI Action" ReadOnly="True" UniqueName="column6">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FIRST_COMM_DATE" FilterControlAltText="Filter column7 column" HeaderText="First Comm Date" ReadOnly="True" UniqueName="column7">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ENTRY_DATE" FilterControlAltText="Filter column8 column" HeaderText="Entry Date" ReadOnly="True" UniqueName="column8">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
        </telerik:RadGrid>

‚Äč

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Aug 2015, 08:49 AM
Hi Keith,

I've already replied to your query in your ticket with ID: 958879. I suggest that we continue our conversation on the mentioned thread.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Keith
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or