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

[Solved] Selected item in the controller

0 Answers 43 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrea
Top achievements
Rank 1
Andrea asked on 27 Jan 2011, 06:31 PM

Example scenario:

public class Kind // Hierarchical data
{
    public int ID { get; set; }
    public string Name { get; set; }
    public virtual Kind Parent { get; set; }
}
public class News // Data for which I want to create an 'Insert new...' page
{
    public int ID { get; set; }
    public string Title { get; set; }
    public string Content { get; set; }
    public virtual Kind Kind { get; set; }
}
...or something like that. I want to write a 'Create' view for the News, and since Kind is a hierarchical type, I thought to use a Telerik.Tree.
I have a form, where I put Title and Content editors, and the Tree for selecting the Kind.
I can populate the Tree simply enough, but when I post the form data, how can I read which item is selected? Or am I missing something really obvious??? :-)
Thanks in advance
Andrea
Tags
TreeView
Asked by
Andrea
Top achievements
Rank 1
Share this question
or