Hi,
I have a user control edit form hooked to a RadGrid, like this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
I have a dropdownbox in the edit form, with a SelectIndexChanged event handler. When the event fires, the DataItem is null.
In my EditForm.ascx.cs:
How would I get DataItem inside the event handler?
Any help with this unexpected behaviour would be appreciated,
Donald
I have a user control edit form hooked to a RadGrid, like this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
I have a dropdownbox in the edit form, with a SelectIndexChanged event handler. When the event fires, the DataItem is null.
In my EditForm.ascx.cs:
protected
void
Page_Load(
object
sender, EventArgs e)
{
var x =
this
._dataItem;
//x is not null, as expected
}
protected
void
Product_SelectedIndexChanged(
object
sender, System.EventArgs e)
{
var x =
this
._dataItem;
//x is null
}
How would I get DataItem inside the event handler?
Any help with this unexpected behaviour would be appreciated,
Donald