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

2 posts, 0 answers
  1. Charles
    Charles avatar
    1 posts
    Member since:
    Nov 2010

    Posted 10 Nov 2011 Link to this post

    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.
  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 15 Nov 2011 Link to this post

    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,
    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
Back to Top