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

JavaScript error messages displayed when Paging is activated on RadGrid

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 06 Dec 2013, 12:57 PM
Dear Telerik,

I'm having the following probelm:

We have a telerik:RadGrid that uses grouping, filtering, sorting and paging. The filtering and page-size selection do not work when paging is enabled. The strange thing is: when I click on one of the column headers, the grid is sorted correctly AND filtering and page-size chainging suddenly works. As soon as I remove the AllowPaging="true" property of the RadGrid, filtering works on first load.

I noticed that there are JavaScript error messages displayed when the page loads and when you click any of the filters. These are only shown when paging is activated and you haven't sorted the grid yet.

The error messages are:

ReferenceError: WebForm_InitCallback is not defined (displayed when page is loaded)

and

TypeError: $find(...) is null (displayed every time you click on a filter icon)


What can cause there errors? Please help me. Thank you.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Dec 2013, 01:12 PM
Hi Krisztian,

Make sure that you are binding the RadGrid using Advanced Data-binding (using NeedDataSource event). Using the NeedDataSource event the filtering,grouping,sorting etc works fine. Please have a look in this demo on Grid - Simple Vs Advanced Data Binding. If this doesn't help,please provide your full code snippet.

Thanks,
Shinu

0
Michael
Top achievements
Rank 2
answered on 09 Dec 2013, 12:50 PM
Hello Shinu, thank you for your reply.

I solved the problem. There was a HTTP module installed that altered JavaScript code (created by Web- and ScriptResources) and destroyed the functionality of the grid and ASP.NET AJAX.

The strange behaviour about it working sometimes was due to the JavaScript code getting cached.
Tags
Grid
Asked by
Michael
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Michael
Top achievements
Rank 2
Share this question
or