Binding to a child list

4 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    22 posts
    Member since:
    Apr 2011

    Posted 01 Aug 2011 Link to this post

    I have a class:

    public class Post {
        public string Title { get; set; }
        public IList<string> Tags { get; set; }
    }

    Is there any way I can edit the list of Tags using the DataForm? Is there another way?

    Thanks,
    Jon
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Aug 2011 Link to this post

    Hi Jonathan,

    I may recommend you to take a look at our online documentation and demos for a reference on RadDataForm. Generally, it is used to edit one item at a time, but still you may navigate through your collection and edit each of them.
     

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    22 posts
    Member since:
    Apr 2011

    Posted 02 Aug 2011 Link to this post

    If I do that though, I have to save each one individually. Is there a control I can use in the data form to edit (and add/delete) items in the Tag list, then save the entity as a whole?
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Aug 2011 Link to this post

    Hello Jonathan,

    You may take a look at our RadGridView control for example. Thus you will be able to display all items from your collection, edit them and save the changes.
     

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top