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

Multi Level TreeView updating to Database

6 Answers 92 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 04 Feb 2010, 07:40 PM
I hope you can point me in the right direction here.  The user need is a treeview where users can contribute suggestions on a data schema.  So the two items people can add are an object or a field.  Objects can have child objects and fields.  Fields have no children.  So a user can just right click and add a child or object underneath an existing object.  Objects only show a name.  Fields show four fields.  Name, Description, IsRequired, OwnerID.  They cannot delete any nodes.

Ok, I have been racking my brains on this of how to impliment it.  I see the hierarchtical examples with XML, but then I couldn't update that in real time so concurrent users would see the changes.  If I used like two tables that were joined (Object, Field), I am unsure of how the hierarchtical templates would work because they can be down like 10 levels, scattered with Fields and Objects.

Do you have any samples or suggestions how how I could impliment this?  I even though about just trying to persist the TreeView back to a table in the database, but unsure how to do that and if it could be real time enough.

Thanks!

6 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 05 Feb 2010, 03:17 PM
Hello Christian Loepp,

Please check this blog post on how to use a self-referencing hierarchy:
http://blogs.telerik.com/valerihristov/posts/09-08-26/self-reference_hierarchy_with_telerik_treeview_for_silverlight.aspx

Please let us know if this works for you.

All the best,
Valentin.Stoychev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Vincent
Top achievements
Rank 1
answered on 14 May 2011, 01:01 PM
Hi... I have downloaded the example.. but it is in lower version of silverlight.. I cannot run it... Do you have another version for silverlight 4?
0
Petar Mladenov
Telerik team
answered on 18 May 2011, 02:18 PM
Hi Christian Loepp,

I modified the project to use SL 4 as an environment and telerik SL 4 dlls. You only need to use Visual Studio 2010 and change the project properties - > Target SL Version from 3 to 4.

Best wishes,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vincent
Top achievements
Rank 1
answered on 18 May 2011, 02:42 PM
Thanks Telerik! I got it now!
0
Vincent
Top achievements
Rank 1
answered on 21 May 2011, 07:11 AM
HI! Is it possible to declare IValueConverter in .Web.Csproj namespace? Even I added System.Windows.Data, it still wont work... 
0
Petar Mladenov
Telerik team
answered on 24 May 2011, 08:15 AM
Hello Christian Loepp,

Could you please elaborate more on your scenario and why do you need this? Are you using web services? The Web Project is used for hosting the project and using Web Services, not for application logic.

Kind regards,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Vincent
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or