radgrid automatically move to next page using timer

4 posts, 0 answers
  1. Ranto
    Ranto avatar
    1 posts
    Member since:
    Sep 2012

    Posted 12 May 2015 Link to this post

    I have radgrid with some data and timer, I want to move next page automatically in radgrid every 5 second and then back to first page when meet the last page.

    How do I set this radgrid automatically move next page?

    Below is my aspx page:

    ASPX:
     </telerik:RadAjaxLoadingPanel> <asp:Timer ID="Timer1" runat="server"  Interval="5000">
     </asp:Timer>     

    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" DataSourceID="SqlDataSource1" GridLines="Both"     GroupPanelPosition="Top"  Skin="BlackMetroTouch"  Width="100%" Height="800px"  AllowPaging="True" >
            <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
                <Columns>
                    <telerik:GridBoundColumn DataField="ID_Mesin" FilterControlAltText="Filter ID_Mesin column" HeaderText="ID_Mesin" SortExpression="ID_Mesin" UniqueName="ID_Mesin">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Tanggal_Laporan" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Laporan column" HeaderText="Tanggal_Laporan" SortExpression="Tanggal_Laporan" UniqueName="Tanggal_Laporan">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Lokasi" FilterControlAltText="Filter Lokasi column" HeaderText="Lokasi" SortExpression="Lokasi" UniqueName="Lokasi">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Pelapor" FilterControlAltText="Filter Pelapor column" HeaderText="Pelapor" SortExpression="Pelapor" UniqueName="Pelapor">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Keterangan_Pelapor" FilterControlAltText="Filter Keterangan_Pelapor column" HeaderText="Keterangan_Pelapor" SortExpression="Keterangan_Pelapor" UniqueName="Keterangan_Pelapor">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Tanggal_Diterima" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Diterima column" HeaderText="Tanggal_Diterima" SortExpression="Tanggal_Diterima" UniqueName="Tanggal_Diterima">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Nama_Penerima" FilterControlAltText="Filter Nama_Penerima column" HeaderText="Nama_Penerima" SortExpression="Nama_Penerima" UniqueName="Nama_Penerima">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Keterangan_Penerima" FilterControlAltText="Filter Keterangan_Penerima column" HeaderText="Keterangan_Penerima" SortExpression="Keterangan_Penerima" UniqueName="Keterangan_Penerima">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Tanggal_Selesai" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Selesai column" HeaderText="Tanggal_Selesai" SortExpression="Tanggal_Selesai" UniqueName="Tanggal_Selesai">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Mesin_Stop" FilterControlAltText="Filter Mesin_Stop column" HeaderText="Mesin_Stop" SortExpression="Mesin_Stop" UniqueName="Mesin_Stop">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Tindakan" FilterControlAltText="Filter Tindakan column" HeaderText="Tindakan" SortExpression="Tindakan" UniqueName="Tindakan">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Tindakan column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="true" />
            </ClientSettings>
     </telerik:RadGrid>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ePMPConnectionString %>" SelectCommand="SELECT * FROM [DetailProblem]"></asp:SqlDataSource>

  2. Eyup
    Admin
    Eyup avatar
    3645 posts

    Posted 15 May 2015 Link to this post

    Hi Ranto,

    I've send a working project in your support ticket to demonstrate how you can achieve that.

    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
  3. Jeffrey
    Jeffrey avatar
    12 posts
    Member since:
    Mar 2014

    Posted 29 Aug 2018 in reply to Eyup Link to this post

    Can you please provide this demo to me as well?  I have a use case where I need to make this happen.
  4. Eyup
    Admin
    Eyup avatar
    3645 posts

    Posted 03 Sep 2018 Link to this post

    Hi Jeffrey,

    I am sending the mentioned sample. Please run the attached application and let me know if it helps you.

    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top