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

2 posts, 0 answers
  1. Keith
    Keith avatar
    117 posts
    Member since:
    Mar 2015

    Posted 03 Aug 2015 Link to this post

    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">
                    <Pdf AllowPrinting="False">
                    <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" />
                        <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:GridBoundColumn DataField="SERIAL_NO" FilterControlAltText="Filter column column" HeaderText="Serial No." ReadOnly="True" UniqueName="column">
                        <telerik:GridBoundColumn DataField="TRACKING_NO" FilterControlAltText="Filter column1 column" HeaderText="Tracking No." ReadOnly="True" UniqueName="column1">
                        <telerik:GridBoundColumn DataField="SUPPLIER_CODE" FilterControlAltText="Filter column2 column" HeaderText="Supplier Code" ReadOnly="True" UniqueName="column2">
                        <telerik:GridBoundColumn DataField="MILL_COIL_NO" FilterControlAltText="Filter column3 column" HeaderText="Mill Coil No." ReadOnly="True" UniqueName="column3">
                        <telerik:GridBoundColumn DataField="MAILBOX_NAME" FilterControlAltText="Filter column4 column" HeaderText="Mailbox Name" ReadOnly="True" UniqueName="column4">
                        <telerik:GridBoundColumn DataField="DOC_NAME" FilterControlAltText="Filter column5 column" HeaderText="Doc Name" ReadOnly="True" UniqueName="column5">
                        <telerik:GridBoundColumn DataField="EDI_ACTION" FilterControlAltText="Filter column6 column" HeaderText="EDI Action" ReadOnly="True" UniqueName="column6">
                        <telerik:GridBoundColumn DataField="FIRST_COMM_DATE" FilterControlAltText="Filter column7 column" HeaderText="First Comm Date" ReadOnly="True" UniqueName="column7">
                        <telerik:GridBoundColumn DataField="ENTRY_DATE" FilterControlAltText="Filter column8 column" HeaderText="Entry Date" ReadOnly="True" UniqueName="column8">
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />

  2. Eyup
    Eyup avatar
    3953 posts

    Posted 06 Aug 2015 Link to this post

    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.

    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
Back to Top