Multi Level TreeView updating to Database

7 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 04 Feb 2010 Link to this post

    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!
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 05 Feb 2010 Link to this post

    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.
  3. DevCraft banner
  4. Vincent
    Vincent avatar
    34 posts
    Member since:
    Apr 2011

    Posted 14 May 2011 Link to this post

    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?
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 18 May 2011 Link to this post

    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
  6. Vincent
    Vincent avatar
    34 posts
    Member since:
    Apr 2011

    Posted 18 May 2011 Link to this post

    Thanks Telerik! I got it now!
  7. Vincent
    Vincent avatar
    34 posts
    Member since:
    Apr 2011

    Posted 21 May 2011 Link to this post

    HI! Is it possible to declare IValueConverter in .Web.Csproj namespace? Even I added System.Windows.Data, it still wont work... 
  8. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 24 May 2011 Link to this post

    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
Back to Top
DevCraft banner