This question is locked. New answers and comments are not allowed.
We have a grid which is bound using the following:
The trouble is that the refresh button/link is showing the wrong url to refresh the page. It's got the right controller and action, but the querystring is pointing to what seems to be a fixed value. It is the same for every page that uses the grid - wrong link address.
We have a custom
which builds the refresh link as follows:
Can anyone explain why we'd be getting the wrong link on the refresh button? All other grids look the same, use the same code, and work perfectly. 'Grid.Server.Select' has nothing in it that references the file, in fact it returns null.
.Grid(Model.Profiles.Where(s => s.Description != ReportConfigurationViewModel.DefaultProfile)), { column definitions.... }.Sortable(s => s.OrderBy(c => c.Add(t => t.Description))).Pageable(page => page.PageSize(15)).Footer(true)
.Render();The trouble is that the refresh button/link is showing the wrong url to refresh the page. It's got the right controller and action, but the querystring is pointing to what seems to be a fixed value. It is the same for every page that uses the grid - wrong link address.
We have a custom
GridPageWrapperHtmlBuilderwhich builds the refresh link as follows:
var urlBuilder = new GridUrlBuilder(grid);var refreshBuilder = new MyGridRefreshHtmlBuilder<T>(grid,urlBuilder.Url(grid.Server.Select));refreshBuilder.Build().AppendTo(parent);Can anyone explain why we'd be getting the wrong link on the refresh button? All other grids look the same, use the same code, and work perfectly. 'Grid.Server.Select' has nothing in it that references the file, in fact it returns null.