This is a migrated thread and some comments may be shown as answers.
Prometheus RadAjaxManager and Third party control Problem
14 Answers 228 Views
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 17 May 2007, 08:07 PM
Hello,
I am trying to use ComponentGo's web scheduler with Prometheus RadAJAXManger.  I am having problem a when I make a call back.  The componentGo Webscheduler disappears after a successful call back.  No errors are thrown.

Strangely my co-worker had a similar problem with Q1 2007 version of the RadAjaxManger but once he set 'EnableOutsidescripts=true" it started working.  I can reproduce this probelm with Q1 2007 version of the RadAjaxManger all the time by setting the above property to false.  I will give the ASP.NET markup for both the versions below.  Is there any similar flag in Prometheus version of RAM that I am missing.  Any help is appreciated. 

Prometheus version ASP.Net code
  <Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="Telerik_AjaxRequest" EnableAJAX="true" 
                 ClientEvents-OnResponseEnd="onResponseEndPrometheus" > 
                <AjaxSettings > 
                    <Telerik:AjaxSetting AjaxControlID="RadAjaxManager1" > 
                        <UpdatedControls> 
                            <Telerik:AjaxUpdatedControl ControlID="lblId" /> 
                            <Telerik:AjaxUpdatedControl ControlID="lblSlug" /> 
                            <Telerik:AjaxUpdatedControl ControlID="lblDate" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtStart" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtEnd" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtWrkDscr" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtWrkDscrAdd" /> 
                            <Telerik:AjaxUpdatedControl ControlID="lblDateAdd" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtStartAdd" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtEndAdd" /> 
                            <Telerik:AjaxUpdatedControl ControlID="hdId" /> 
                            <Telerik:AjaxUpdatedControl ControlID="txtSlug" /> 
                            <Telerik:AjaxUpdatedControl ControlID="lblStoryID" /> 
                            <Telerik:AjaxUpdatedControl ControlID="lblResourceID" /> 
                            <Telerik:AjaxUpdatedControl ControlID="hdResourceID" /> 
                            <Telerik:AjaxUpdatedControl ControlID="hdStoryID" /> 
                            <Telerik:AjaxUpdatedControl ControlID="Sch" /> 
                        </UpdatedControls> 
                    </Telerik:AjaxSetting > 
                    <Telerik:AjaxSetting AjaxControlID="btnEditSave">  
                        <UpdatedControls> 
                            <Telerik:AjaxUpdatedControl ControlID="Sch" LoadingPanelID="lpSch" /> 
                        </UpdatedControls> 
                    </Telerik:AjaxSetting>       
                      
                      <Telerik:AjaxSetting AjaxControlID="btnAddSave">  
                        <UpdatedControls> 
                            <Telerik:AjaxUpdatedControl ControlID="pnlGo" LoadingPanelID="lpSch" /> 
                        </UpdatedControls> 
                    </Telerik:AjaxSetting>   
               </AjaxSettings> 
           </Telerik:RadAjaxManager>             
           <Telerik:RadAjaxLoadingPanel ID="lpSch" runat="server" MinDisplayTime="200" HorizontalAlign="Center" Height="200px"  Width="200px" Transparency="15">  
                <asp:Image ID="lpImg" runat="server" EnableViewState="false" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading6.gif" /> 
           </Telerik:RadAjaxLoadingPanel>    

Rad Q1 2007 version of RAM:
   <RadAjax:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="true" OnAjaxRequest="RadAjax_AjaxRequest" 
                 ClientEvents-OnResponseEnd="onResponseEnd" > 
                <AjaxSettings> 
                    <RadAjax:AjaxSetting AjaxControlID="RadAjaxManager1" > 
                        <UpdatedControls> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblId" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblSlug" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblDate" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtStart" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtEnd" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtWrkDscr" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtWrkDscrAdd" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblDateAdd" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtStartAdd" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtEndAdd" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="hdId" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="txtSlug" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblStoryID" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="lblResourceID" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="hdResourceID" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="hdStoryID" /> 
                            <RadAjax:AjaxUpdatedControl ControlID="Sch" /> 
                              
                        </UpdatedControls> 
                    </RadAjax:AjaxSetting> 
                    <RadAjax:AjaxSetting AjaxControlID="btnEditSave">  
                        <UpdatedControls> 
                            <RadAjax:AjaxUpdatedControl ControlID="Sch" LoadingPanelID="lpSch" /> 
                        </UpdatedControls> 
                    </RadAjax:AjaxSetting>       
                      
                      <RadAjax:AjaxSetting AjaxControlID="btnAddSave">  
                        <UpdatedControls> 
                            <RadAjax:AjaxUpdatedControl ControlID="Sch" LoadingPanelID="lpSch" /> 
                        </UpdatedControls> 
                    </RadAjax:AjaxSetting>   
               </AjaxSettings> 
           </RadAjax:RadAjaxManager>             
           <RadAjax:AjaxLoadingPanel ID="lpSch" runat="server" MinDisplayTime="200" HorizontalAlign="Center" Height="200px"  Width="200px" Transparency="15">  
                <asp:Image ID="lpImg" runat="server" EnableViewState="false" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading6.gif" /> 
           </RadAjax:AjaxLoadingPanel>    

As you can see they are pretty similar almost. 

Note that 'Sch' is the ID of the ComponentGO control.

Also, I have tried this ComponentGO control with straight MS AJAX without any issue.  So the prometheus version also should work.  I can send you the project if you desire.

Again, thanks for your help
Raj

14 Answers, 1 is accepted

Sort by
0
Johan
Top achievements
Rank 1
answered on 18 May 2007, 07:22 AM
Now this may be a long shot, but from what I've seen in the forums lately, some of the symptoms you describe appear with the current version of rad Ajax Prometheus when <pages enableEventValidation="false"> is set in the web.config file.

You may check out the following forum thread for details and additional information:
http://www.telerik.com/community/forums/thread/b311D-thhaa.aspx

But I have the feeling the playing with EnableEventValidation property both in your web.config and in your page declaration might alleviate the problem.
0
Raj
Top achievements
Rank 1
answered on 18 May 2007, 06:20 PM
Johan,

Thank you for the tip.  Unfortunately in my case it did not work.

I think that something in the Prometheus RAM is preventing ComponentGo's javascript from executing after the response from call back is received.  I hope Telerik team will take a notice of this issue.

Thanks
Raj
0
Leon
Top achievements
Rank 1
answered on 19 May 2007, 11:43 AM
Raj, it indeed might be a compatibility issue.

Are you aware of the upcoming RadScheduler control? It seems it will be part of the Prometheus suite, so it definitely should work properly with the new RadAjax. See details about it here.

Meanwhile, I hope RAM EnableOutsideScripts set to true is a feasible workaround for you.

Regards,
Leon
0
Raj
Top achievements
Rank 1
answered on 20 May 2007, 02:19 AM
I am aware of upcoming RadScheduler. 

Related to the flag EnableOutSideScripts, I do not think that EnableOutsideScripts flag is not available on Prometheus version of Rad AjaxManager.  Am I incorrect in saying that? THis flag is availabe in Non-prometheus version of RadAjaxManager and it indeed works.

I hope you will take a serious look at it.

Thanks
Raj
0
Vlad
Telerik team
answered on 20 May 2007, 02:44 PM
Hi Raj,

Please verify whether this component is operational within UpdatePanel with UpdateMode="Conditional" plus AsyncPostBackTrigger.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj
Top achievements
Rank 1
answered on 21 May 2007, 04:37 PM
Yes, this works just fine.  here is my markup.  I removed the ComponentGO's markup for brevity's sake .
Thanks for looking at this
 <asp:Button ID="btnTrigger" runat="server" OnClick = "btnTrigger_Click" Visible="true"  Text="Initiate Aync Postback" Width="10" Height="10" />     
             
          <asp:updatepanel runat="server" ID="updatePanel" UpdateMode="Conditional">  
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="btnTrigger" EventName="Click" />   
            </Triggers> 
            <ContentTemplate> 
                  
               <asp:HiddenField ID="HiddenField2" runat="server"  />      
                <asp:Panel runat="server" id="pnlMessage" HorizontalAlign="center">  
                    <span style="font-size: 8pt; font-family: Verdana"   
                    ><asp:Label ID="lblDNDResult" runat="server" Font-Bold="true" ForeColor="Green" ></asp:Label>   
                     
                             <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="10" DynamicLayout="true">    
                               <ProgressTemplate> 
                                        <div style="font-weight:bold">  
                                            <img src="RadControls/Ajax/Skins/Default/Loading.gif" /><br /> 
                                            Please wait.....  
                                        </div> 
                                </ProgressTemplate> 
                                  
                            </asp:UpdateProgress> 
                          
                        </span> 
                </asp:Panel> 
                 
               <ComponentGo:Scheduler>....  
           </ComponentGo:Scheduler>    
          </ContentTemplate>   
            </asp:updatepanel>   
 
0
Raj
Top achievements
Rank 1
answered on 23 May 2007, 02:42 PM
Hello,
Was wondering if you have any info on this issue for me.

Thanks and Regards
Raj
0
Steve
Telerik team
answered on 23 May 2007, 03:12 PM
Hi Raj,

Please send us the project (please include the page that works with MS AJAX as well) and after we review it we will advise you further.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj
Top achievements
Rank 1
answered on 02 Jun 2007, 07:01 PM
Steve,
Thank you and sorry for taking such a long time.   I am ready with a project.  Please let me know how I can attach a zip file to this post.  I do not see an option to attach files at this point.

Thanks again and regards
Raj
0
Steve
Telerik team
answered on 04 Jun 2007, 05:42 AM
Hello Raj,

You need to open a support ticket, from your Client.net account and you will have the option to attach files there. If the project is bigger than 10 Mbs, you can upload it on a public server and provide us with a link in the support ticket as well.

Regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mikkel
Top achievements
Rank 1
answered on 20 Aug 2008, 08:17 AM
Hi,

Did this ever get solved?

Im using the newest version of both Telerik RadControls and ComponentGo WebScheduler and having the same problem.

The WebScheduler is placed in a Telerik RadAjaxPanel, and it simply disappears when updating the panel.

WebScheduler seems to work pretty fine in a MS Ajax UpdatePanel instead - but not a good solution for me.
0
Maria Ilieva
Telerik team
answered on 20 Aug 2008, 10:26 AM
Hi Mikkel,

As you already mentioned the application works as expected with UpdatePanel with UpdateMode="Conditional". Please try to set the following setting for the RadAjaxPanel:

protected void RadAjaxPanel1_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
    {
        e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.
Conditional;
    }

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mikkel
Top achievements
Rank 1
answered on 20 Aug 2008, 11:12 AM
Hi Maria,

I didnt really help.

My setup is:

A MasterPage which has a AjaxManager.

A Page which has a AjaxManagerProxy.
The proxy has a ajaxsetting bound to a button which updates a radgrid.
When updating the grid, we want to update the panel as well, showing some calender data in the ComponentGo WebScheduler.

The RadGrid works fine, but the WebScheduler just disappears.

If using a MS UpdatePanel instead, it works.

-------------------------------------------
Just tried to make a very simple page with:
RadScripManager, RadAjaxManager, RadAjaxPanel, a button and a WebScheduler inside the panel.

Added these two ajaxsettings:
<telerik:AjaxUpdatedControl ControlID="Button1" />
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />

When clicking to button - scheduler disappears....
0
Leon
Top achievements
Rank 1
answered on 21 Aug 2008, 06:46 PM
Mikkel,

This setup may cause some problems outside the WebScheduler component. Updating RadAjaxPanel with AJAX Manager is not recommended. Instead, you can replace the AJAX Panel with an ASP:Panel and get the same effect. If you need to have the controls within the Panel AJAX-enabled, just add another setting into the AJAX Manager: Panel/Panel.

Hope that helps!
~Leon
Tags
Ajax
Asked by
Raj
Top achievements
Rank 1
Answers by
Johan
Top achievements
Rank 1
Raj
Top achievements
Rank 1
Leon
Top achievements
Rank 1
Vlad
Telerik team
Steve
Telerik team
Mikkel
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or