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

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

1 Answer 89 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Luciano Kaesemodel
Top achievements
Rank 1
Luciano Kaesemodel asked on 16 Jul 2012, 06:17 PM
Hello...

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");           
 alert(listView);
}

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?


Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 19 Jul 2012, 02:02 PM
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.

Greetings,
Tsvetina
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
ListView
Asked by
Luciano Kaesemodel
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or