Replacement for ResponseScripts

4 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 16 Apr 2008 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Apr 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 16 Apr 2008 Link to this post

    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
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 16 Apr 2008 Link to this post

    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
Back to Top