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

Loading pages with telerik controls on an existing page with telerik

1 Answer 29 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 22 May 2013, 07:32 AM
I apologize ahead of time since I'm likely posting this in the wrong forum. 

I'm not familiar with telerik controls and been asked to maintain some code that uses them. In this project, I have some modifications I've been making for UI performance reasons and ran into some issues.

I have one page that contains a telerik radgrid. It's meant to be standalone or used as a widget on another page.

As a standalone page, I have no problems.

On another page, I make an ajax call to the page containing the telerik radgrid and populate an HTML tag with the results. On the page, the grid appears fine. However, interacting with any of the parent pages original telerik controls results in Javascript errors likely caused by having the original page's telerik js namespace being overwritten.

Other than putting the child page into an iframe, is there another way to prevent the telerik javascript namespace conflicts of the two pages?

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 24 May 2013, 08:31 AM
Hello Michael,

Namespace overriding is very unlikely the be the reason of the problems that you experience. However, if it is, you can solve it replacing the ScriptManager with RadScriptManager as the latter will automatically handle any scripts collisions.

In order to be of more help could you please explain the structure of your pages in more details? Something like:

* Master Page
    * Content Page
          * User Control with Rad Grid

Regards,
Genady Sergeev
Telerik
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
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Michael
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or