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

Asxc Control Client Template

2 Answers 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Jul 2013, 08:59 PM
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 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 11 Jul 2013, 03:19 PM
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?
0
Kate
Telerik team
answered on 15 Jul 2013, 07:54 AM
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.
Tags
TreeView
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Kate
Telerik team
Share this question
or