Identifying & checking multiple checkboxes in Radtree view

3 posts, 0 answers
  1. Chakravarthy
    Chakravarthy avatar
    30 posts
    Member since:
    Jan 2011

    Posted 24 Feb 2011 Link to this post

    Hello telerikteam,

                        In our application we have "Radtreeview" having multiple "Radtreenodes" with checkboxes. Please refer to below screen shot for better understanding on UI. Now i am having sceario where i need dynamicaaly  identify the checkboxes associated with each node. I am using the below code snippet which is identifying the node text, but not able to find checkbox assocaited with node. Please provide support/documentation on this issue.




    RadTreeView tree = Find.ById<RadTreeView>"ctl00_maincontent_dockCategorySelelctionPanel_C_treeCategoryPanel");
    node = tree.FindNodeByText(category); 


    Let me know if you required any more information

    Kalyan Uppalapati
    Riversand Technologies Inc

  2. Chakravarthy
    Chakravarthy avatar
    30 posts
    Member since:
    Jan 2011

    Posted 28 Feb 2011 Link to this post

    Please Reply to the above post
  3. Cody
    Cody avatar
    3360 posts

    Posted 01 Mar 2011 Link to this post

    Hello Chakravarthy,

    I apologize for the delay responding to this. We'll be happy to help, but first we really need to see the full HTML for your RadTreeView before we can come up with a known working coded solution to this problem for you.

    I am going to take a stab in the dark and suggest you try this code instead:

    RadTreeView tree = Find.ById<RadTreeView>("ctl00_maincontent_dockCategorySelelctionPanel_C_treeCategoryPanel");
    RadTreeNode node = tree.FindNodeByText(category);
    HtmlInputCheckBox cbox = node.Find.ByExpression<HtmlInputCheckBox>("tagname=input", "type=checkbox");
    cbox.Check(true, true);

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top