In a number of applications that I have worked on using Telerik Web UI controls for ASP.NET AJAX, I have use the below pattern to retrieve the row object server-side that the user selects.
protected void MyRadGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == "RowClick")
{
ObjectX a = new ObjectX();
((GridEditableItem)e.Item).UpdateValues(a);
}
}
Previously, as long as ObjectX was a "flat" object - meaning scalar members only - the object "a" would return fully populated with data.
However, since I've downloaded the ASP.NET AJAX Q2 2014, the UpdateValues line causes the application to bomb, specifically because UpdateValues tries to set "a" with some NULL values.
protected void MyRadGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == "RowClick")
{
ObjectX a = new ObjectX();
((GridEditableItem)e.Item).UpdateValues(a);
}
}
Previously, as long as ObjectX was a "flat" object - meaning scalar members only - the object "a" would return fully populated with data.
However, since I've downloaded the ASP.NET AJAX Q2 2014, the UpdateValues line causes the application to bomb, specifically because UpdateValues tries to set "a" with some NULL values.