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

RadAjaxManager trouble

8 Answers 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hector Hernandez
Top achievements
Rank 2
Hector Hernandez asked on 23 Aug 2011, 06:52 AM
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

8 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Aug 2011, 07:23 AM
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.
0
Hector Hernandez
Top achievements
Rank 2
answered on 23 Aug 2011, 08:02 AM
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!
0
Tsvetina
Telerik team
answered on 25 Aug 2011, 12:07 PM
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 >>

0
Hector Hernandez
Top achievements
Rank 2
answered on 25 Aug 2011, 11:14 PM
Thanks Tsvetina 
for the reply

but still have the trouble!!

dont know what to do
thanks for the help.!1
0
Iana Tsolova
Telerik team
answered on 26 Aug 2011, 11:15 AM
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 >>

0
Hector Hernandez
Top achievements
Rank 2
answered on 26 Aug 2011, 05:46 PM
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!!



0
Accepted
Iana Tsolova
Telerik team
answered on 30 Aug 2011, 11:06 AM
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 >>

0
Hector Hernandez
Top achievements
Rank 2
answered on 03 Sep 2011, 12:02 AM
Thanks a lot Iana
it work´s

Regards



Tags
Ajax
Asked by
Hector Hernandez
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Hector Hernandez
Top achievements
Rank 2
Tsvetina
Telerik team
Iana Tsolova
Telerik team
Share this question
or