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

Url for changing from one page to another page.

2 Answers 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JD
Top achievements
Rank 1
JD asked on 23 Mar 2013, 12:46 AM
I have the following grid set up on my view

@(Html.Kendo().Grid(Model)    
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.FirstName).Groupable(false);
        columns.Bound(p => p.City);
        columns.Bound(p => p.EprescribePatientMRN);
        columns.Bound(p => p.DateOfBirth);
    })
      .ToolBar(toolbar =>
    {
        toolbar.Template(@<text>
           <div class="toolbar">
                    <label class="category-label" for="category">Show products by category:</label>
                        @(Html.Kendo().DropDownList()
                            .Name("categories")
                            .OptionLabel("All")
                            .DataTextField("CategoryName")
                            .DataValueField("CategoryID")
                            .AutoBind(false)
                            .Events(e => e.Change("categoriesChange"))
                            .DataSource(ds =>
                            {
                                ds.Read("ToolbarTemplate_Categories", "Grid");
                            })
                        ) 
                        </div>
        </text>);
    })
    .ClientDetailTemplateId("tmplPatientDrugs")
    .Groupable()
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("Patients", ""))
        .PageSize(30)
    )
      )


and when I hit the page number, I end up getting paging information in the page url, is there a way to work around this. As I would really like a clean url, rather than filling it with querystring params and so on.

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Mar 2013, 04:51 PM
Hello,

There is not such type of issue in kendo UI Grid.

I have added one demo in below location, please check below demo let me know if you able to reproduce issue.

https://skydrive.live.com/redir?resid=977B16A5E89A5236!107&authkey=!AIA_AIL-NfmBPBg

Thanks,
Jayesh Goyani
0
Vladimir Iliev
Telerik team
answered on 26 Mar 2013, 03:42 PM
Hi John,

As Jayesh mentioned in his last reply this behavior is not expected and most probably is caused by JavaScript errors on the current page. Could you please open you browser console and copy - paste here the output? Also I would suggest to check this screencast for more information about how to debug KendoUI Applications. 

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
JD
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Vladimir Iliev
Telerik team
Share this question
or