Kendo UI MVC Grid

2 posts, 1 answers
  1. s
    s avatar
    1 posts
    Member since:
    Dec 2010

    Posted 16 Feb Link to this post

    Hi,

         I am Evaluating telerik Kendo Grid for MVC.

    I have dynamic Datatable which I would like to bind to the grid.I can able to bind the grid but unable to do paging,filtering etc.

    Once I go to next page,the grid collapase to empty with page numbers set to 0.

     

         @(Html.Kendo().Grid<System.Data.DataTable>().Name("Grid")
                .DataSource(d => d.Ajax().PageSize(2)
                 .Read(r => r.Action("ReadData", "Home"))
                    )

            .Columns(col =>
            {
                foreach (System.Data.DataColumn column in Model.Columns)
                {
                    col.Bound(column.ColumnName);
                }

            }).Sortable()
            .Filterable()
            .Pageable()

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 17 Feb Link to this post

    Hello,

    The provided sample code looks correct, so we cannot state for sure what is causing the issue. Could you send us small isolated runnable example that demonstrates it? You could also check the following example project, which demonstrates Binding to Datatable in action.

    Regards,
    Dimiter Madjarov
    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. UI for ASP.NET MVC is VS 2017 Ready
Back to Top