using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

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

    }

    
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem item = (GridEditFormItem)e.Item;
            (item.FindControl("DropDownList1") as DropDownList).Attributes.Add("onchange", String.Format("updateTextbox('{0}','{1}');", item.FindControl("TextBox1").ClientID, item.FindControl("DropDownList1").ClientID));
        }
    }

}
