Datepicker problem with Prometheus ajax

3 posts, 0 answers
  1. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 19 May 2007 Link to this post

    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. Mike
    Mike avatar
    524 posts
    Member since:
    Feb 2007

    Posted 19 May 2007 Link to this post

    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> 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 19 May 2007 Link to this post

    Thanks Mike, your suggestion seems to have sorted out this little problem.

    Regards,
    Jonathan
Back to Top