1. Toxic
    Toxic avatar
    3 posts
    Member since:
    Oct 2016

    Posted 28 Oct 2016 Link to this post

    hi guys,


    this was first a checkbox but I had to change it to a Grid.

    but the only problem is that the paging is not working... can you guys find the mistake?

    (I am a beginner)


                              <telerik:RadGrid ID="ChangedList" runat="server" AutoGenerateColumns="false" OnPageIndexChanged="ChangedList_PageIndexChanged" OnNeedDataSource="ChangedList_NeedDataSource" GridLines="None" AllowPaging="true" RenderMode="Lightweight" PageSize="5" AllowSorting="True">
                    <MasterTableView ClientDataKeyNames="Logging_ID" backcolor="PaleGreen"  ForeColor="black" BorderStyle="Solid" BorderColor="Green" AlternatingItemStyle-BackColor="MediumSeaGreen"   PagerStyle-BackColor ="LawnGreen"   HeaderStyle-ForeColor="green" HeaderStyle-BorderColor="Crimson">

                                HeaderText="Checkbox" >
                            <telerik:GridBoundColumn DataField="ModuleName" HeaderText="Naam"  UniqueName="ModuleName" ReadOnly="true">
                            <telerik:GridBoundColumn DataField="AssemblyVersion" HeaderText="Versie" UniqueName="AssemblyVersion" ReadOnly="true">







     protected void Page_Load(object sender, EventArgs e)

              // CheckBoxList1.AutoPostBack = cbAutoRefresh.Checked;
                if (!IsPostBack)
                    ddWebserver.DataSource = controller.Server_List();
                    ddWebserver.DataTextField = "Description";
                    ddWebserver.DataValueField = "Server_ID";

                    ddWebserver.SelectedIndex = 0;






     protected void ChangedList_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)





            protected void ChangedList_PageIndexChanged(object sender, GridPageChangedEventArgs e)
                int index = e.NewPageIndex;
                int current = ChangedList.CurrentPageIndex;
            private void LoadListboxes()

                var changes = controller.Logging_List().Where(x => x.Ignore == false).ToList().OrderBy(x => x.ModuleName);

                ChangedList.DataSource = changes;



  2. Misho
    Misho avatar
    161 posts

    Posted 01 Nov 2016 Link to this post


    In case you are using the Kendo Grid component for ASP.NET Core (MVC) I would recommend you to use the following example as a reference:
    The sample you have sent, however, shows that you use telerik:RadGrid which is the RadGrid control for ASP.NET AJAX (Webforms).
    You can use the following resources in this case, which might be relevant for RadGrid paging functionality:

    I hope you will find this information useful.

    Telerik by Progress
    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