Item Count appended to front of initial page

7 posts, 0 answers
  1. ian
    ian avatar
    9 posts
    Member since:
    Sep 2015

    Posted 20 Mar Link to this post

    I've run into an interesting issue.

    I have a grid's initial page being set to a range of items equal to that of the item count appended to the front of the page Ex. 4 rows, equals initial page 401. If I click the center page button of the page navigation it displays the data. What makes even less sense is I have an identical grid on another page returned from a separate controller but the same model and configuration, it works just fine. The only difference between the two grids is the parameters that are supplied to fetch the data, along with the route to allow the additional parameter in the URL. 

        The first thing i noticed is in my console I did have two errors regarding the sourcemaps for kendo.all.min.js.map and the kendo.aspnetmvc one as well. I grabbed replaced the existing ones from the original location and all cleared up in the console yet this issue still remains.

    Is this a known issue on MVC 6 helpers?

    Things I've tried. I supplied the model's row count in the datasource to override. Turning paging off makes it render correctly, though I would very much like for it work as it works on the same model elsewhere. I have also allowed ServerOperations to fetch the paging information again, but it acts like it doesnt know it needs to.

    The model is an

    IEnumerable<Document>

    @(Html.Kendo().Grid<Document>(Model)
                .Name("bookpage-grid")
                .Columns(columns =>
                {
                    columns.Bound(m => m.ImageIndicator).Width(35).Title("Img").Filterable(false);
                    columns.Bound(m => m.Instrument).Width(130);
                    columns.Bound(m => m.Name).Width(200);
                    columns.Bound(m => m.NameType).Width(75);
                    columns.Bound(m => m.Type).Width(75);
                    columns.Bound(m => m.Date).Width(75);
                })
                .ToolBar(toolbar =>
                {
                    toolbar.Pdf();
                    toolbar.Excel();
                })
                    .Excel(excel => excel.FileName(Model.FirstOrDefault().BookPage + "Export.xslx"))
                    .Selectable()
                    .Groupable()
                    .Sortable()
                    .Scrollable()
                    .Filterable()
                    .Pageable()
                    .DataSource(datasource => datasource
                    .Ajax()
                    .PageSize(10)
                    .ServerOperation(false)
                    )
               
    )

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 23 Mar Link to this post

    Hello ian,

    Unfortunately, I'm not exactly sure what is causing the issue you have described looking at the provided information. Therefore, could you please provide a simplified test sample which to demonstrate the issue you are facing.

    Regards,
    Rosen
    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
  4. ian
    ian avatar
    9 posts
    Member since:
    Sep 2015

    Posted 23 Mar in reply to Rosen Link to this post

    Is there a more private means of which i can supply a working project. There are some prorietary dependencies and services that are involved.
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 23 Mar Link to this post

    Hello ian,

    You could open a support ticket in which to provide the project. However, please note that it is better to strip out all of the unrelated to the issue code in the first place. This will allow us to observe the issue in isolation and allow you to keep the proprietary information private. 

    Regards,
    Rosen
    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
  6. ian
    ian avatar
    9 posts
    Member since:
    Sep 2015

    Posted 23 Mar in reply to Rosen Link to this post

    Thank you I will do so shortly. I am creating the separate project isolating the issue. 
  7. ian
    ian avatar
    9 posts
    Member since:
    Sep 2015

    Posted 23 Mar Link to this post

    Ticket Submited : 1021660

    Thank you

    1021660
    1021660
    1021660
    1021660
    1021660
    1021660
  8. ian
    ian avatar
    9 posts
    Member since:
    Sep 2015

    Posted 24 Mar Link to this post

    In the Interest of completeness. The issue was resolved and was because my input and route parameter were both "page" and the grid was picking that up. Changed to inputPage and all is well.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready