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

[Solved] Grid Javascript error trying to collapse group

3 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 22 Mar 2013, 07:14 PM
var d=typeof(z)==="undefined"?false:true;
if(typeof(z)==="undefined"){z=l;
}if(!this._owner.ClientSettings.AllowGroupExpandCollapse){return;
}var x=l.id.split("__")[0];  <-- 4094

l.id is not defined at line 4094.

The page containing the datagrid with grouping is in an iframe.

l.name is the same of our web apps iframe, why should the javascript need to know the id of the page.

The javascript appears to be for the radgrid.

Any ideas...?

3 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 22 Mar 2013, 09:45 PM
I tried to make a new project to demonstrate the issue and for some reason the javascript associated with the radgrid doesn't load, but the collapse/expand arrow works.

I am checking fiddler and the scriptresource is not shown.   

What causes a radgrid to load its javascript in a scriptresource and not?
0
Radoslav
Telerik team
answered on 27 Mar 2013, 09:51 AM
Hi Peter,

The ScriptManager is responsible for loading all RadControls’ scripts on the page. Could you please try adding a ScriptManager into the page which is loaded in the iframe and let me know if the issue still persists? If the scripts are not loaded could you please post your aspx page markup with the related code behind files? Thus we will be able to gather more details about your scenario and provide you with more to-the-point answer.

Looking forward for your reply.

Greetings,
Radoslav
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.
0
Peter
Top achievements
Rank 1
answered on 27 Mar 2013, 12:16 PM
I can't attach RAR files to forum posts.   I created a support ticket.  My sample includes an AJAX Script Manager.

EnableScriptCombine defaults to true, that is why I wasn't seeing the individual script.   

For some reason, in my application, when _toggleGroupsExpand is called, "this" translates to the frame that the grid is contained within, rather than the grid itself.  I am not seeing the same issue in my sample app, yet.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or