This is a migrated thread and some comments may be shown as answers.
Datepicker problem with Prometheus ajax
2 Answers 62 Views
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 19 May 2007, 09:25 AM
Hi, I am trying to ajaxify some pages with the Prometheus AjaxManager but am getting a problem with the radDatePicker control.

With a radDatePicker dropped onto a page and wired up in the radAjaxManager I get the following error message:

Assembly 'RadCalendar.Net2, Version 2.1.0.0, Culture=neutral, PublicToken=a1432cd341173140' does not contain a Web resource with name 'Telerik.WebControls.RadControls.Input.Scripts.RadInput.js'

Removing the RadAjaxManager and using a Microsoft Ajax update panel and script manager works fine.

Any ideas on the cause of this?

Regards,
Jonathan

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 19 May 2007, 09:43 AM
I was able to reproduce the problem too. It appears that it only occurs if the control uses its own embedded scripts - this is on by default. If you set the UseEmbeddedScripts property to False, the problem goes away (you will also need to copy the RadControls/Calendar and RadControls/Input folders to the root of your web application. Here is my setup - hopefully this approach will be applicable for you as well.

 <asp:ScriptManager  
            runat="server"  
            ID="ScriptManager1"  
            EnablePartialRendering="True"
        </asp:ScriptManager> 
         
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadDatePicker2"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="Label1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
 
         <radCln:RadDatePicker  
            ID="RadDatePicker2"  
            runat="server"  
            AutoPostBack="true"  
            UseEmbeddedScripts="false"  
            OnSelectedDateChanged="RadDatePicker2_SelectedDateChanged"
        </radCln:RadDatePicker> 
         
        <asp:Label runat="server" ID="Label1"></asp:Label> 

0
Jonathan
Top achievements
Rank 1
answered on 19 May 2007, 11:20 PM
Thanks Mike, your suggestion seems to have sorted out this little problem.

Regards,
Jonathan
Tags
Ajax
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Jonathan
Top achievements
Rank 1
Share this question
or