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

nested inserts <RadGrid><RadListView /></RadGrid>

1 Answer 29 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 10 Nov 2011, 08:38 PM
I have a RadGrid being populated by an IEnumerable list of custom business objects (Orders). I am trying to compile a list of line items to add to the new order prior to saving (creating & inserting order in database) I am using a PopUp edit form for the RadGrid that has a RadListView on it. What is the best way to populate a list of items in memory that can be used both to databind to the RadList and create line items when the user chooses to "save" the Order? I can't save the list to the database, because an Order must exist first to reference to.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 15 Nov 2011, 07:57 AM
Hi Charles,

You could keep your data in the Session and write it to database only when required. You can see how we use a DataSet to populate RadGrid in Session and then the insert/update operations inside the control are saved in it at this address:
Grid / Using Server-side API

All the best,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ListView
Asked by
Charles
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or