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

Item Count appended to front of initial page

6 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ian
Top achievements
Rank 2
ian asked on 20 Mar 2016, 05:02 AM

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)
                )
           
)

6 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 23 Mar 2016, 08:22 AM

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
0
ian
Top achievements
Rank 2
answered on 23 Mar 2016, 01:13 PM
Is there a more private means of which i can supply a working project. There are some prorietary dependencies and services that are involved.
0
Rosen
Telerik team
answered on 23 Mar 2016, 01:24 PM

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
0
ian
Top achievements
Rank 2
answered on 23 Mar 2016, 01:28 PM
Thank you I will do so shortly. I am creating the separate project isolating the issue. 
0
ian
Top achievements
Rank 2
answered on 23 Mar 2016, 03:40 PM

Ticket Submited : 1021660

Thank you

1021660
1021660
1021660
1021660
1021660
1021660
0
ian
Top achievements
Rank 2
answered on 24 Mar 2016, 07:27 PM
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.
Tags
Grid
Asked by
ian
Top achievements
Rank 2
Answers by
Rosen
Telerik team
ian
Top achievements
Rank 2
Share this question
or