Asxc Control Client Template

3 posts, 0 answers
  1. Mark
    Mark avatar
    10 posts
    Member since:
    Jul 2013

    Posted 10 Jul 2013 Link to this post

    I am currently getting the html of a ascx control through a jquery ajax request.  I set this response to a node through javascript using 
    node.set_clientTemplate(t);
    node.bindTemplate();

    Currently the template only returns a radnumerictextbox, however it doesn't work properly.  It shows up on the screen but allows alpha characters and the EmptyMessage text doesn't disappear when the control has focus.  These are just some of the items I have noticed at least.   I can make the same request for the ascx template and put the result to a div and the control behaves perfectly so I know that side of the process is working fine.

    Any help would be appreciated.
  2. Mark
    Mark avatar
    10 posts
    Member since:
    Jul 2013

    Posted 11 Jul 2013 Link to this post

    I found this link the documentation Add HTML templates to the TreeNodes so it appears you can't assign a template on the client side for a new node or is this old documentation?  I also tried returning my ascx html and setting it as the link suggests but that actually caused the tree to have problems then.

    So I guess I am wondering if there is any way to use a radcontrol in a client template?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 15 Jul 2013 Link to this post

    Hello Mark,

    In order to add templates form the client side I would suggest that you use the approach described in this help article - Client Templates.

    Regards,
    Kate
    Telerik
    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 the blog feed now.
Back to Top