This question is locked. New answers and comments are not allowed.
Hi,
I'm building a grid that'll show an object collection where each object has 2 or 3 property collections within it i.e. hierarchical data.
This sort of works - I am adding sets of GridViewTableDefinitions as ChildTableDefinitions - but the grid's property settings aren't getting inherited (should they be?)
For example
I set the grid's AutoGenerateColumns value to false but all the children still have their's showing? Is there an easy way to cascade this? I tried setting the AutoGenerateFieldDescriptors field to false on the definition but this doesn't work (it says it is obsolete and to set it on the grid!)
I also have a more serious problem that when I scroll the column cells and column headers become out of sync
I'm using Q3 2009 trial
I'm building a grid that'll show an object collection where each object has 2 or 3 property collections within it i.e. hierarchical data.
This sort of works - I am adding sets of GridViewTableDefinitions as ChildTableDefinitions - but the grid's property settings aren't getting inherited (should they be?)
For example
I set the grid's AutoGenerateColumns value to false but all the children still have their's showing? Is there an easy way to cascade this? I tried setting the AutoGenerateFieldDescriptors field to false on the definition but this doesn't work (it says it is obsolete and to set it on the grid!)
I also have a more serious problem that when I scroll the column cells and column headers become out of sync
I'm using Q3 2009 trial
5 Answers, 1 is accepted
0
Hi,
Generally AutoGenerateFieldDescriptors is obsolete - please use AutoGenerateColumns instead. You can check this demo for more info how to set this to your child grid:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/HierarchyChildTemplate
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Generally AutoGenerateFieldDescriptors is obsolete - please use AutoGenerateColumns instead. You can check this demo for more info how to set this to your child grid:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/HierarchyChildTemplate
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
GM72
Top achievements
Rank 1
answered on 26 Jan 2010, 03:59 PM
Hi,
Is this the new recommended way? I've looked at a couple of examples, such as http://www.telerik.com/community/forums/silverlight/gridview/multilevel-hirarchy-in-radgridview.aspx but they seem to have the problem I describe.
I'd rather do it in C# than xaml as I'm not keen on 'hard-coding'.
Thanks for your prompt reply
Is this the new recommended way? I've looked at a couple of examples, such as http://www.telerik.com/community/forums/silverlight/gridview/multilevel-hirarchy-in-radgridview.aspx but they seem to have the problem I describe.
I'd rather do it in C# than xaml as I'm not keen on 'hard-coding'.
Thanks for your prompt reply
0
Hi,
You can use DataLoading event to achieve this programmatically:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/SelfReference
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can use DataLoading event to achieve this programmatically:
http://demos.telerik.com/silverlight/#GridView/Hierarchy/SelfReference
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
GM72
Top achievements
Rank 1
answered on 27 Jan 2010, 09:55 AM
Yes I had noticed that.
This isn't ideal as to deal with an object that has collections within collections I am likely to end up writing several hundred lines of code.
Are there any plans to move this 'under the hood'?
With the infragistics grid i just have to write one line of code (grid.itemssource = e.result) and it does it automatically
This isn't ideal as to deal with an object that has collections within collections I am likely to end up writing several hundred lines of code.
Are there any plans to move this 'under the hood'?
With the infragistics grid i just have to write one line of code (grid.itemssource = e.result) and it does it automatically
0
Hello,
You definitely do not need to write hundred lines of code to achieve your goal.
I've attached small example to illustrate you how to create unlimited grid hierarchy easily from object that has collections.
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You definitely do not need to write hundred lines of code to achieve your goal.
I've attached small example to illustrate you how to create unlimited grid hierarchy easily from object that has collections.
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
