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

Load asp.net web user control using jQuery

2 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 27 Jan 2011, 05:13 PM
Hi,

I want to use jQuery AJAX methods to load a User Control containing Telerik controls dinamically/programatically.

I want to do this because I am trying to develop an ASP.NET application without PostBacks. I will maintain in my Master page all JSON collections returned from my WCF services and do client binding of this collections to Telerik Controls.

I will load the user controls only for the first time they are called and maintain them in separated DIVs. When the controls is needed again I will switch them using jQuery hide/show intead of loading the user control again.

Telerik has a very good support for client manipulation of controls using javascript so I beleieve that this is possible.

I have a jQuery small framework that already do this with html pages in an MVC application. The problem is that Telerik ASP.NET MVC does not have enough controls as do Telerik ASP.NET and I need some of them.

This page here (http://aspxtutorial.com/post/2011/01/02/Load-aspnet-web-user-control-using-jQuery-and-web-method.aspx) show how to load ASP.NET controls with jQuery.  I could test with some Telerik controls but I need to know if all ASP.NET Telerik Controls support this kind of procedure/architecture.

Can you help me ???

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 01 Feb 2011, 01:46 PM
Hi Mvbaffa,

Thank you for contacting us.

We do not test all controls in all scenarios if they could be loaded by jQuery and web method. Some of the controls in specific scenarios rely on postback by default. For example:  RadGrid’s built-in insert/update/delete, sorting, grouping, filtering, hierarchy. Could you please be more specific, which controls would you like to use?
Additionally please note that such a dynamic loading is MVC feature and the RadControls for ASP.NET AJAX are not designed to support it.

Looking forward for your reply.

Regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
mvbaffa
Top achievements
Rank 1
answered on 02 Feb 2011, 01:17 AM
I have tested with the calendar and it did not work. But if you say that some controls need postback then it would be better to concentrate in ASP.NET MVC.

Thanks 
Tags
General Discussions
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
mvbaffa
Top achievements
Rank 1
Share this question
or