using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "AddNewChildRating")
        {
            GridDataItem parentRow = e.Item as GridDataItem;
            (e.Item as GridDataItem).Expanded = true;
            GridTableView nestedView = parentRow.ChildItem.NestedTableViews[0];
            nestedView.Items[0].FireCommandEvent("InitInsert", String.Empty);
        }
    }
}

