This question is locked. New answers and comments are not allowed.
I would like to know if the silverlight treeview control supports multiple columns, similar to the question on the WPF counterpart found here:http://www.telerik.com/community/forums/wpf/treeview/multicolumn-treeview.aspx .
Also, I would like the values in the columns to be editable and to be able to change the edit template for each column. Back in Sept. http://www.telerik.com/community/forums/silverlight/treeview/edit-treeview-node.aspx the response was that "it's coming". So, I'm hoping it's here :)
Thank you.
Also, I would like the values in the columns to be editable and to be able to change the edit template for each column. Back in Sept. http://www.telerik.com/community/forums/silverlight/treeview/edit-treeview-node.aspx the response was that "it's coming". So, I'm hoping it's here :)
Thank you.
5 Answers, 1 is accepted
0
Hello Mark,
You should be able to achieve a multi-column view with RadTreeView in Silverlight similar to the article you mention. However, I believe a GridView would be a much more natural fit for this kind of scenario. Have you thought about using a GridView instead of treeview?
As for the edit template - unfortunately it didn't make it in our last release and our current priorities won't allow us to include it in the coming Q1. So, in order to change the edit template you'll still have to change the control template of the treeview item you're editing.
Sincerely yours,
Tihomir Petkov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You should be able to achieve a multi-column view with RadTreeView in Silverlight similar to the article you mention. However, I believe a GridView would be a much more natural fit for this kind of scenario. Have you thought about using a GridView instead of treeview?
As for the edit template - unfortunately it didn't make it in our last release and our current priorities won't allow us to include it in the coming Q1. So, in order to change the edit template you'll still have to change the control template of the treeview item you're editing.
Sincerely yours,
Tihomir Petkov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 2
answered on 03 Feb 2009, 05:05 PM
Thank you for the reply Tihomir,
I have considered GridView. I'm assuming the expand/collapse behavior would be derived from the grouping feature. Or, is there a way to actually have tree-like behavior in the first column without grouping?
The problem with grouping is it seems most grids that support grouping do so in a way that obscures the column data for the group row. In the WPF multicolumn TreeView example I referenced above, the IsAbstract, Namespace and Module columns still display their data for the parent notes. In the RadGridView example, when I group by country, the group row just shows the country.
So, it seems I need more hierarchichal representation than a true grouping capability. But, within that heirarchy the columns for each level are consistent. Again, examples I've seen of hierarchical grids seem to disconnect the columns from the parent to the child (to support different types from each level, I'm sure). But, my requirement would be for it to look and behave like that multi-column treeview, but editable. If that's possible w/ RadGridView for SL - then I'm sold :)
[ note: Just found an example of what I mean on a competitor's site ... I_frag_stic_ - under their CTP, look at the hierarchical financial data example where you can expand and collapse accounts and the columns display financial data for all rows. That said, I hear only good things about Telerik and would love to persue the solution here first]
I have considered GridView. I'm assuming the expand/collapse behavior would be derived from the grouping feature. Or, is there a way to actually have tree-like behavior in the first column without grouping?
The problem with grouping is it seems most grids that support grouping do so in a way that obscures the column data for the group row. In the WPF multicolumn TreeView example I referenced above, the IsAbstract, Namespace and Module columns still display their data for the parent notes. In the RadGridView example, when I group by country, the group row just shows the country.
So, it seems I need more hierarchichal representation than a true grouping capability. But, within that heirarchy the columns for each level are consistent. Again, examples I've seen of hierarchical grids seem to disconnect the columns from the parent to the child (to support different types from each level, I'm sure). But, my requirement would be for it to look and behave like that multi-column treeview, but editable. If that's possible w/ RadGridView for SL - then I'm sold :)
[ note: Just found an example of what I mean on a competitor's site ... I_frag_stic_ - under their CTP, look at the hierarchical financial data example where you can expand and collapse accounts and the columns display financial data for all rows. That said, I hear only good things about Telerik and would love to persue the solution here first]
0
Hello Mark,
Yes - you are correct - you neeed hierarchical GridView.
We are working on that feature and will release it with Q1 release which is just behind the door - in about a month.
Kind regards,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Yes - you are correct - you neeed hierarchical GridView.
We are working on that feature and will release it with Q1 release which is just behind the door - in about a month.
Kind regards,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 2
answered on 16 Apr 2009, 09:29 PM
Hi,
In the latest examples of hierarchical grids, it still seems we are restricted to doing a grid within a grid - each discrete with its own headers, grouping, etc. What I'm really after in the SL grid is just like the WPF example that I referenced in the original post. Is that possible now?
Thanks
In the latest examples of hierarchical grids, it still seems we are restricted to doing a grid within a grid - each discrete with its own headers, grouping, etc. What I'm really after in the SL grid is just like the WPF example that I referenced in the original post. Is that possible now?
Thanks
0
Hi Mark,
I have prepared a custom sample for you. I believe it covers the scenario you are trying to achieve.
Since this is quite a specific case we could not include the logic for general use in the RadGridView and ship it as internal feature. However it is not impossible task. With the help of a user control, a cell template and some custom code within we have a kind of hybrid tree/grid control now.
Please have a look at the attached project. Let me know in case you need additional help to customize it for your needs.
In few words( regarding the attached sample):
1. The expanded collapsed state is persisted in the business object ( Person in our case)
2. The expand/collapse logic of the "tree" column is handled by the ExpandableCellNode user control. We place it in the cell template of the first column.
3. To change the visual appearance of the 'tree' part you may need to alter the ExpandableCellNode.xaml
4. The disadvantage of this approach is that you lose any functionality that alters the order of the records e.g. sorting , grouping or filtering.
Best wishes,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I have prepared a custom sample for you. I believe it covers the scenario you are trying to achieve.
Since this is quite a specific case we could not include the logic for general use in the RadGridView and ship it as internal feature. However it is not impossible task. With the help of a user control, a cell template and some custom code within we have a kind of hybrid tree/grid control now.
Please have a look at the attached project. Let me know in case you need additional help to customize it for your needs.
In few words( regarding the attached sample):
1. The expanded collapsed state is persisted in the business object ( Person in our case)
2. The expand/collapse logic of the "tree" column is handled by the ExpandableCellNode user control. We place it in the cell template of the first column.
3. To change the visual appearance of the 'tree' part you may need to alter the ExpandableCellNode.xaml
4. The disadvantage of this approach is that you lose any functionality that alters the order of the records e.g. sorting , grouping or filtering.
Best wishes,
Pavel Pavlov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
