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

JS error upon paging

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Indicia
Top achievements
Rank 1
Indicia asked on 21 Sep 2012, 12:39 PM

I have a RadGrid entirely created via code during runtime.

When I use this setting below, the pager works just fine:

myGrid.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;

However, when I change it into this:

myGrid.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced;

...I get the following javascript exception on every grid action (paging, sorting), and the actual postback is never executed:

   SCRIPT438: Object doesn't support property or method '$' 
  Ajax.js, line 574 character 8 

(http://aspnet-scripts.telerikstatic.com/ajaxz/2012.2.912/Ajax/Ajax.js)

That line reads:

if($telerik.$(a).css("opacity")>0||$telerik.$(a.getElementsByClassName("raDiv")[0]).css("opacity")>0){
    g=false;
}

Could you think of a reason how this error could possibly related to the advanced pager?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 26 Sep 2012, 06:14 AM
Hi,

There should be no problem using the NextPrevNumericAndAdvanced pager mode. Could you share your full page source code along with the code-behind file content? Thus all the people who want to help you will have better understanding of your project and will be able to give more to-the-point information.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Indicia
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or