Adding child records in hierarchical grid through MasterTableView CommandItem

Thread is closed for posting
7 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1696 posts
    Member since:
    Oct 2004

    Posted 26 May 2006 Link to this post


    RadGrid for ASP .NET version

    RadControls for ASP .NET AJAX version
    3.2.0 and later

    2008.1.415 and later
    .NET version

    2.0 and later

    Visual Studio version

    2005 and later

    Programming language

    VB NET

    Browser support

    all supported by RadGrid for ASP .NET

    all browsers supported by RadControls for ASP .NET AJAX

    This demo shows how to add child records (using the built-in insertion mechanism of r.a.d.grid) to expanded detail tables. The example presents two level hierarchy and single expand - thus you can identify uniquely the child table in which to display the insertion form.

    Feel free to extend the example with custom code if your scenario is more complex.
  2. Igor Gintsburg
    Igor Gintsburg avatar
    3 posts
    Member since:
    May 2006

    Posted 26 May 2006 Link to this post

    Hi Stephen,
    thanks you this worked for me.
    I've addopted it to my case, cause I have "Add child" in the each item, so the code looks like this:

            Private Sub RadGrid3_ItemCommand(ByVal source As System.Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid3.ItemCommand

                If (e.CommandName = "InsertSubItem") Then
                    Dim editedItem As GridDataItem = CType(e.Item, GridDataItem)
                    editedItem.Expanded = True

                    editedItem.ChildItem.NestedTableViews(0).IsItemInserted = True
                End If

            End Sub

    Thanks again


  3. Sebastian
    Sebastian avatar
    9934 posts

    Posted 26 May 2006 Link to this post

    Hi Igor,

    I am glad that the solution suits your needs.

    the telerik team
  4. Vincent Munoz
    Vincent Munoz avatar
    1 posts
    Member since:
    Jun 2006

    Posted 22 Jul 2006 Link to this post

    This does not work, after selecting "Add Master" or "Add Child", then entering the data and pressing insert, nothing happens, no data is inserted or created?  What's the deal?
  5. Sebastian
    Sebastian avatar
    9934 posts

    Posted 24 Jul 2006 Link to this post

    Hi Vincent,

    The sample project demonstrates how to display initially the insertion form for child records when clicking a button inside the master table command item. The actual insert operation is not included in the demo - please excuse us if the title/description of this thread is somehow misleading.
    The target of this application is to present the technique how to insert child items from the parent table command area using the grid bubbling mechanism.

    To understand how to perform the real insert operation please follow this link.

    Kind regards,
    the telerik team
  6. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 18 Jun 2009 Link to this post


    dead links in post above me..!
  7. Sebastian
    Sebastian avatar
    9934 posts

    Posted 18 Jun 2009 Link to this post

    Hello Nikolai,

    I updated the links to point to the relevant article in the RadGrid for ASP.NET AJAX online documentation. Thank you for notifying us about them.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top