Hello,
After I updated to 2015 q1 I get following error
Upgrade problem - Unable to cast object of type 'Telerik.Web.UI.ElasticButton' to type 'System.Web.UI.WebControls.LinkButton'
This happens in ItemCreated. I was using following code to hide insertitem when I used insertbutton to open a Radwindow.
protected void ClassesOverviewGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
if (e.Item.OwnerTableView.IsItemInserted)
{
GridEditableItem item = e.Item as GridEditableItem;
LinkButton updateButton = (LinkButton)item.FindControl("PerformInsertButton");
((GridTableRow)updateButton.Parent.Parent).Style.Value += "display:none";
}
}
}
If I change to
LinkButton updateButton = (LinkButton)item.FindControl("PerformInsertButton");
((GridTableRow)updateButton.Parent.Parent).Style.Value += "display:none";
then I get the error in second line:
Additional information: Unable to cast object of type 'EditFormTableCell' to type 'Telerik.Web.UI.GridTableRow'.
Do you know how I can fix this?