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

radgrid automatically move to next page using timer

3 Answers 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ranto
Top achievements
Rank 1
Ranto asked on 13 May 2015, 02:47 AM

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>

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 15 May 2015, 09:17 AM
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
0
Jeffrey
Top achievements
Rank 1
answered on 29 Aug 2018, 12:34 PM
Can you please provide this demo to me as well?  I have a use case where I need to make this happen.
0
Eyup
Telerik team
answered on 03 Sep 2018, 11:37 AM
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.
Tags
Grid
Asked by
Ranto
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Jeffrey
Top achievements
Rank 1
Share this question
or