Problem loading a ASPX dynamically with JQuery containing a RadListView...

2 posts, 0 answers
  1. Luciano Kaesemodel
    Luciano Kaesemodel avatar
    29 posts
    Member since:
    Apr 2007

    Posted 16 Jul 2012 Link to this post


    I have a simple page (Principal.aspx)  with several links... Each link load a Aspx page on right, like that: 
    $('#myRightdiv').load('Test.aspx', function () {          

    My Test.aspx has a RadListView, and I have a pageLoad to get it on client :

    function pageLoad() {
     listView = $find("myRadListView");           

    The problem is sometimes that pageLoad is not fired at all... So I cant get the RadListView on client...
    If I try to get that on my Principal.aspx , I always got a Null...

    I´m using last 2012 Q2 and .NET 4.0 (VS 2012) ... With VS210 and .NET 3.5 its working fine...

    Any idea?

  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 19 Jul 2012 Link to this post

    Hi Luciano,

    Let me summarize the conversation we had about this issue in case anyone else hits it. In case you have further questions, please post them in the support thread you have opened:

    This turns out to be a general framework issue, not related to our product. The problem is observable only in .NET 4.0 and can be reproduced without any RadControl in the page. As our controls are built on top of the ASP.NET AJAX framework and they count on the framework to behave correctly in order to work. In cases of limitations coming from there, there is sometimes nothing we can do to ensure proper behavior of out components. 
    The advised way to load content dynamically in a page is to use UserControls which you can also load during an AJAX call. You can see an example here. By using such approach you can be sure that the listview will be loaded as expected and will be available in client script.

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