Hi,
I'm trying to use the RadTreeView by binding it to a collection of custom classes.
TemplateSelector works fine for arbitrary depth and types to mimick WPF's "keyless" datatemplates.
I do have heterogeneous data in my collections (basically, Tasks and People, with tasks & people as potential children of a task. Pretty basic stuff).
I do have a few questions though:
- I need to bind the text displayed in my node to the name property of the node (which is easy enough by using a hierarchicaldatatemplate with a HeaderTemplate containing a textblock bound to this property).
The problem arises if I want to make use of the built-in edition system. How can I indicate to the system which property it is supposed to bind to for edition ?
Additionnaly, is it possible to limit edition to a specific category of nodes (the tasks in my example) ?
- Is there any way to come up with a column-treeview? (I know you must hear this one 10 times a day). There are samples out there for WPF, but the classes they use (from the GridView) are not public in Silverlight and they are tied to the GridView anyway.
In any case, thanks for your great control libray !
Edit: OK, I did answer my own first question by using the "PreviewEdited" event to carry out the operation manually.
I'm trying to use the RadTreeView by binding it to a collection of custom classes.
TemplateSelector works fine for arbitrary depth and types to mimick WPF's "keyless" datatemplates.
I do have heterogeneous data in my collections (basically, Tasks and People, with tasks & people as potential children of a task. Pretty basic stuff).
I do have a few questions though:
- I need to bind the text displayed in my node to the name property of the node (which is easy enough by using a hierarchicaldatatemplate with a HeaderTemplate containing a textblock bound to this property).
The problem arises if I want to make use of the built-in edition system. How can I indicate to the system which property it is supposed to bind to for edition ?
Additionnaly, is it possible to limit edition to a specific category of nodes (the tasks in my example) ?
- Is there any way to come up with a column-treeview? (I know you must hear this one 10 times a day). There are samples out there for WPF, but the classes they use (from the GridView) are not public in Silverlight and they are tied to the GridView anyway.
In any case, thanks for your great control libray !
Edit: OK, I did answer my own first question by using the "PreviewEdited" event to carry out the operation manually.