Hi,
I have replaced the rad prometheus grid to new telerik (ASPNETAJAX grid) but it is giving me error in the below code.
Please assist.
private void insertRecord(GridCommandEventArgs e)
{
string args = string.Empty;
// Get the Exam Id
if (e.Item.OwnerTableView.Name == "Detractions")
{
GridDataItem parentExam = e.Item.OwnerTableView.ParentItem;
args = string.Format("\"Detractions/Edit.aspx?eid={0}\", \"DetractionDialog\"",
parentExam.OwnerTableView.DataKeyValues[parentExam.ItemIndex]["ID"].ToString());
}
else
{
args = "\"Edit.aspx\", \"ExamDialog\"";
}
// Create the script to open the editor window
grdExams.ResponseScripts.Clear();//error grdExams.ResponseScripts.Add(string.Format("window.radopen({0});", args)); //error
}
//Error
'Telerik.Web.UI.RadGrid' does not contain a definition for 'ResponseScripts' and no extension method 'ResponseScripts' accepting a first argument of type 'Telerik.Web.UI.RadGrid' could be found (are you missing a using directive or an assembly reference?)
Thanks
vivek