4 Answers, 1 is accepted
0
Hi memol,
Thank you for writing.
You should not try to assign values to the Font.Bold property as it is readonly. Instead create a new Font object like so:
I hope this answers your question. Please write back if you have more questions.
Regards,
Victor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for writing.
You should not try to assign values to the Font.Bold property as it is readonly. Instead create a new Font object like so:
radTreeView1.Nodes["Some node"].Font = new Font("Arial", 8, FontStyle.Regular); |
I hope this answers your question. Please write back if you have more questions.
Regards,
Victor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

memol
Top achievements
Rank 1
answered on 05 Feb 2009, 06:04 PM
Hi
thanks dear for reply :)
in this way i can edit nodes properties via index or nodes text. how can i access to these property by nodes.name ?
working with index decrease code-readability . and working with node.text is not suitable for me (node.text maybe changed more time in run-time")
how to access to nodes by names ?
thanks dear for reply :)
in this way i can edit nodes properties via index or nodes text. how can i access to these property by nodes.name ?
working with index decrease code-readability . and working with node.text is not suitable for me (node.text maybe changed more time in run-time")
how to access to nodes by names ?
0
Accepted
Hi memol,
Thank you for writing.
You can search by name using RadTreeNodeCollection's Find() method, it returns an array of found nodes. You can use it like so:
I hope this is what you are looking for. Please write back if you have other questions.
Best wishes,
Victor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for writing.
You can search by name using RadTreeNodeCollection's Find() method, it returns an array of found nodes. You can use it like so:
private void radButton1_Click(object sender, EventArgs e) |
{ |
// The second argument indicates whether to search recursively. |
RadTreeNode[] foundNodes = radTreeView1.Nodes.Find("SomeNode", true); |
MessageBox.Show(foundNodes[0].Text); |
} |
Best wishes,
Victor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

memol
Top achievements
Rank 1
answered on 08 Feb 2009, 09:07 PM
Hi
Thanks . :)
Thanks . :)