How to add NodeTemplates dynamically for a set of nodes

4 posts, 0 answers
  1. Pradeep Enugala
    Pradeep Enugala avatar
    55 posts
    Member since:
    Apr 2010

    Posted 21 Dec 2011 Link to this post

    Hi telerik team,

    I'm using the Radtreeview structure in my application.
    I have 3 nodes and for each node it has the subnodes.I'm adding the nodes dynamically from code behind.I would like to add Linkbutton and the image controls in the Nodetemplate for each node.

    Node1
        --subnode1.1
        --subnode1.2
        --subnode1.3
    Node2
        --subnode2.1
        --subnode2.2
    Node3
        --subnode3.1
        --subnode3.2
        --subnode3.3
        --subnode3.4
    Now for each nodes[Node1,Node2,Node3],i want to add the nodetemplates respectively.Here nodetemplate contains Linkbutton and Imagebutton.
    How to add this from codebehind.
    Please reply ASAP

    Thankyou...




  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 21 Dec 2011 Link to this post

    Hi Pradeep Enugala,

    You can read about Templates and how to set them in Code Behind in the following help article.

    All the best,
    Bozhidar
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pradeep Enugala
    Pradeep Enugala avatar
    55 posts
    Member since:
    Apr 2010

    Posted 21 Dec 2011 Link to this post

    Hi Telerik team,

    Thankyou for the reply.I'm unable to open the page when clicked on the 'help article' link.
    Please find the attached image.

    Please provide the solution for this issue.

    Thank you..
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 23 Dec 2011 Link to this post

    Hi,

    We apologize for the broken link. We will look into why it's showing you the error message.

    To answer your question about templates at runtime, I've attached a sample page which demonstrates how you can achieve that.

    Kind regards,
    Bozhidar
    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
Back to Top