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

[Solved] Grid paging/refresh non functional

1 Answer 81 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.
Sam Critchley
Top achievements
Rank 1
Sam Critchley asked on 31 Jan 2011, 01:59 AM
I have a grid setup to do everything via ajax. When the page containg the grid load it initiates the select request and shows a page of data. However the paging links do nothing or direct the browser to "#". The refresh button takes the browser to ?Grid-size=10. In short nothing works.

There are NO errors reported (which is really really annoying).

My grid is defined as: 

Html.Telerik().Grid<InspectorViewModel>()
            .Name("Grid")
.DataKeys(p=>p.Add(x=>x.Id))
            .Columns(columns =>
                {
                    columns.Bound(o => o.InternalReferenceId).Title("Inspector Id").Width(100).Sortable(false);
                    columns.Bound(o => o.Name).Title("Inspector Name").Sortable(false);
                    columns.Bound(o => o.Id).ClientTemplate(@"<div class=""actionlinks""><a href=""#"" class=""editlink"">Edit</a> | <a href=""#"" class=""deletelink"">Delete</a></div>").Sortable(false).Title("Action").Width(100);
                })
            .DataBinding(db =>
                {
                    db.Ajax().Select("ListGrid""Inspector");
db.Ajax().Delete("Delete""Inspector");
                 db.Ajax().Update("Edit""Inspector");
                }
            )
.Editable(p=>p.Enabled(true))
.ClientEvents(p=>p.OnRowDataBound("rowBound").OnDataBound("listBound"))
            .Selectable()
            .Sortable()
            .Pageable()
            .EnableCustomBinding(true).Render();
The following telerik scripts have loaded (in this order):

jquery
common
grid.editing
grid

1 Answer, 1 is accepted

Sort by
0
Sam Critchley
Top achievements
Rank 1
answered on 31 Jan 2011, 02:03 AM
Never mind it was ye olde 'using older version of jquery validate problem'. Updated to 1.7 and its working, all teams members have been slapped for using old versions of script files.
Tags
Grid
Asked by
Sam Critchley
Top achievements
Rank 1
Answers by
Sam Critchley
Top achievements
Rank 1
Share this question
or