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

Identifying & checking multiple checkboxes in Radtree view

2 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chakravarthy
Top achievements
Rank 1
Chakravarthy asked on 24 Feb 2011, 01:02 PM
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");
RadTreeNode 
node = tree.FindNodeByText(category); 
node.Select();

 


Let me know if you required any more information

Regards,
Kalyan Uppalapati
Riversand Technologies Inc


2 Answers, 1 is accepted

Sort by
0
Chakravarthy
Top achievements
Rank 1
answered on 28 Feb 2011, 06:26 PM
Please Reply to the above post
0
Cody
Telerik team
answered on 02 Mar 2011, 01:01 AM
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,
Cody
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!
Tags
General Discussions
Asked by
Chakravarthy
Top achievements
Rank 1
Answers by
Chakravarthy
Top achievements
Rank 1
Cody
Telerik team
Share this question
or