Problem registering script to client side in a custom control.

2 posts, 0 answers
  1. Johnney Zhang
    Johnney Zhang avatar
    1 posts
    Member since:
    May 2010

    Posted 09 Apr 2013 Link to this post

    Hi Guys,

    I'm starting work on a project who is based on the Telerik RadAjaxManager control and our own control, but seems like the new registered JS on the fly doesn't be called or executes. To simplify the problem, I created a demo control which is really simple and just shows a js "alert" dialog. Also I created a demo to show how we use this demo control and "Telerik RadAjaxManager", if you download the attachment and run the demo, the "Default.aspx" will be shown and a "alert" dialog display,but the problem is that the "alert" dialog doesn't show up again if we click "click me" button. I don't know why. I'm not sure if there is anything wrong I did or it's bug for Telerik RadAjaxManager, if I remove the RadAjaxManager, everything will be fine. please help, it's really urgent for us.

    More information:
    My development machine: Win7 X64, en-us culture, Vs2010
    Telerik.Web.UI.dll version: 2013.1.403.40

    The demo attached download address:

    Best Regards,
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 12 Apr 2013 Link to this post

    Hi Johnney,

    Note that when Ajax is used you should register the client script using the approaches described in the help topic below:

    I have modified your application using one of this options and it works as expected on my end. Test the attached modified application and let me know if ti works for you.

    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top