Loading pages with telerik controls on an existing page with telerik

Thread is closed for posting
2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jul 2012

    Posted 22 May 2013 Link to this post

    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?

  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 24 May 2013 Link to this post

    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

    Genady Sergeev
    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.
Back to Top