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

Replacement for ResponseScripts

3 Answers 74 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 16 Apr 2008, 05:38 AM
hi,
In my application, i was using Grid of asp.net.

and using that grid's ResponseScripts I was opening rad window, this way....

grdExams.ResponseScripts.Clear();

grdExams.ResponseScripts.Add(

string.Format("window.radopen({0});", args));


But now I have replaced that grid with Prometheus one. but Prometheus Grid does not support ResponseScripts.

Can any one tell what is the alternative of ResponseScripts in Prometheus grid.

Please help me.
Priya

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Apr 2008, 07:47 AM
Hi Rahul,

You can ajaxify the grid using RadAjaxManager and use the manager ResponseScipts. Here is an example how to get the manager:

RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);


Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 16 Apr 2008, 10:03 AM
hi Vlad,

Actully i know this. but is this possible without Ajax.??

I want to open rad window by Grid.
it means by setting Grid's property.

As by asp.net Grid we can set ResponseScripts, so in Prometheus Grid is there any property like this??

Priya
0
Sebastian
Telerik team
answered on 16 Apr 2008, 10:10 AM
Hi Rahul,

Since the internal ajax has been removed from the Prometheus version of RadGrid, you can ajaxify the grid using RadAjaxManager Prometheus and use its ResponseScripts collection to open the pop-up window. Here is an integration example which illustrates the approach:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx

The following help article elaborates on the differences between the Classic and Prometheus version of RadGrid:

Migration to Prometheus

Best regards,
Stephen
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
Rahul Khinvasara
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or