RadAjaxManager trouble

9 posts, 1 answers
  1. Hector Hernandez
    Hector Hernandez avatar
    45 posts
    Member since:
    Oct 2009

    Posted 23 Aug 2011 Link to this post

    Hello:

    i have this issue:
    I have one RadAjaxManager on my .aspx page like this:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="LnkGrabar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GrdDetalle" />
                    <telerik:AjaxUpdatedControl ControlID="TxtFecha" />
                    <telerik:AjaxUpdatedControl ControlID="TxtProducto" />
                    <telerik:AjaxUpdatedControl ControlID="TxtOperacion" />
                    <telerik:AjaxUpdatedControl ControlID="TxtCanastas" />
                    <telerik:AjaxUpdatedControl ControlID="TxtBines" />
                    <telerik:AjaxUpdatedControl ControlID="TxtLbsNetas" />
                    <telerik:AjaxUpdatedControl ControlID="CboProducto" />
                    <telerik:AjaxUpdatedControl ControlID="CboOperacion" />
                    <telerik:AjaxUpdatedControl ControlID="TxtObservacion" />                               
                    <telerik:AjaxUpdatedControl ControlID="TxtBoleta" />       
                    <telerik:AjaxUpdatedControl ControlID="LblMensaje" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             
        </AjaxSettings>
    </telerik:RadAjaxManager>

    and I open a popup windowd with this:

    Dim sb As New StringBuilder
    sb.Append("<script>")
    sb.Append("window.open('http://msdn.microsoft.com', '', '');")
    sb.Append("</scri")
    sb.Append("pt>")
     
     
    ClientScript.RegisterStartupScript(Me.GetType, "test", sb.ToString())

    but the page dont open
    only when i remove the telerik:RadAjaxManager it's open

    please help me!!
    thanks in advance
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Aug 2011 Link to this post

    Hello Hector,

    I tried the same scenario in this version 2011.1.315.35 and it worked as expected. I suppose it might be a version issue. So try upgrading to to the latest version with the help of the following documentation.
    Upgrading RadControls Trial to RadControls Developer license or newer version

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hector Hernandez
    Hector Hernandez avatar
    45 posts
    Member since:
    Oct 2009

    Posted 23 Aug 2011 Link to this post

    Hello Shinu.

    thank´s for the reply
    but i have the same version

    2011.1.315.35

    and still have the problem.
    thank´s for the help!
  5. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 25 Aug 2011 Link to this post

    Hello Hector,

    Try registering the scripts as shown in this help article:
    Executing custom javascript code after AJAX update

    All the best,
    Tsvetina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Hector Hernandez
    Hector Hernandez avatar
    45 posts
    Member since:
    Oct 2009

    Posted 25 Aug 2011 Link to this post

    Thanks Tsvetina 
    for the reply

    but still have the trouble!!

    dont know what to do
    thanks for the help.!1
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 26 Aug 2011 Link to this post

    Hi Hector,

    Can you share the latest version of your test code so we can test it on our side and see what might went wrong? You would probably have to strip it by removing the odd stuff not related to the issue and make it runnable outside of your real application.

    Greetings,
    Iana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  8. Hector Hernandez
    Hector Hernandez avatar
    45 posts
    Member since:
    Oct 2009

    Posted 26 Aug 2011 Link to this post

    Hi Iana 

    this is the code: that i'am using to open popup:

    Dim sb As New StringBuilder
                    sb.Append("<script>")
                    sb.Append("window.open('RepPreparacionMatPrima.aspx', '', '');")
                    sb.Append("</scri")
                    sb.Append("pt>")
     
                    ScriptManager.RegisterStartupScript(Page, GetType(Page), "myscript", sb.ToString, True)

    and this the part html
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="LnkGrabar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GrdDetalle" />
                    <telerik:AjaxUpdatedControl ControlID="TxtFecha" />
                    <telerik:AjaxUpdatedControl ControlID="TxtProducto" />
                    <telerik:AjaxUpdatedControl ControlID="TxtOperacion" />
                    <telerik:AjaxUpdatedControl ControlID="TxtCanastas" />
                    <telerik:AjaxUpdatedControl ControlID="TxtBines" />
                    <telerik:AjaxUpdatedControl ControlID="TxtLbsNetas" />
                    <telerik:AjaxUpdatedControl ControlID="CboProducto" />
                    <telerik:AjaxUpdatedControl ControlID="CboOperacion" />
                    <telerik:AjaxUpdatedControl ControlID="TxtObservacion" />                               
                    <telerik:AjaxUpdatedControl ControlID="TxtBoleta" />       
                    <telerik:AjaxUpdatedControl ControlID="LblMensaje" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    thanks in advance!!



  9. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 30 Aug 2011 Link to this post

    Hello Hector,

    Try setting the last parameter of the RegisterStartupScript method to false instead of true. Or remove the <script> tag from the client code you are trying to register.
    Attaching a runnable sample for your reference.

    Regards,
    Iana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  10. Hector Hernandez
    Hector Hernandez avatar
    45 posts
    Member since:
    Oct 2009

    Posted 02 Sep 2011 Link to this post

    Thanks a lot Iana
    it work´s

    Regards



Back to Top
UI for ASP.NET Ajax is Ready for VS 2017