Load asp.net web user control using jQuery

3 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 27 Jan 2011 Link to this post


    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. Radoslav
    Radoslav avatar
    1564 posts

    Posted 01 Feb 2011 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 01 Feb 2011 Link to this post

    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.

Back to Top