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

Binding to a child list

3 Answers 59 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 01 Aug 2011, 10:05 PM
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

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Aug 2011, 07:41 AM
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 >>

0
Jonathan
Top achievements
Rank 1
answered on 02 Aug 2011, 09:31 AM
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?
0
Maya
Telerik team
answered on 02 Aug 2011, 09:55 AM
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 >>

Tags
DataForm
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or