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

[Solved] Query string for Paging and Sorting not being rendered

0 Answers 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 29 Sep 2012, 04:59 PM


@(Html.Telerik().Grid(Model)
                    .Name("Grid")
                    .Columns(columns =>
                    {
                        columns.Bound(o => o.Company1);
                        columns.Bound(o => o.ContactName);
                        columns.Bound(o => o.Distance);
                    })
                    .Sortable()
                    .Pageable()
                    )


Using the code listed above the query strings do not appear for sorting or paging links with my grid.  For example I would expect to see something like this:
  • <a href="/sample-widget/index?Grid-orderBy=Company1-desc">Company1</a>
  • But what I do see is this <a href="/sample-widget/index/">Company1</a>

Obviously if I click onto a link the page just refreshes, however if I were to navigate to the first URL by typing that in manually the grid pages or sorts accordingly.  I have to think I am just missing something small here.  Any advice or insight would be greatly appreciated.  This is a local installation of Sitefinity 5.1.3270.0 and Telerik Extensions.
Thanks,
Michael

Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Share this question
or