This is a migrated thread and some comments may be shown as answers.

'ResponseScripts'

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 19 May 2008, 12:24 PM

 

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

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 May 2008, 12:33 PM
Hi Vivek,

Our new grid does not have any built-in ajax - you can use RadAjaxManager or RadAjaxPanel (where ResponseScripts property is available) to ajaxify the grid.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or