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

problem with radscheduler javascript

4 Answers 145 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MOUSLIKI
Top achievements
Rank 1
MOUSLIKI asked on 11 Feb 2011, 01:30 PM
Hi all,
   I have used the code an the demo :   http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx

but the function of JavaScript in the example don't work in my project ..?????

please I'm very stressed with that.

4 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 11 Feb 2011, 02:19 PM
Hello MOUSLIKI,

Could you please be more specific which of the Javascript functions doesn't work and did you receive any error?

Regards,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
MOUSLIKI
Top achievements
Rank 1
answered on 11 Feb 2011, 03:46 PM
thanks  Veronica 

   the all function related to appointement or ressources for example : 
scheduler.get_appointments().getAppointmentsInRange(start, end);

and also the intellesense don't give me any of this methode !!!! 
0
Veronica
Telerik team
answered on 14 Feb 2011, 01:36 PM
Hello MOUSLIKI,

In the ticket info I see you are using version 2010.3 1317. Can you confirm this?

To include jQuery on your page and enable IntelliSense simply register Telerik.Web.UI.Common.Core.js using RadScriptManager/MS ScriptManager under VS 2010 or MS ScriptManager under VS 2008:
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </telerik:RadScriptManager>

Also please note that you need to cast the RadScheduler as shown below:

<script type="text/javascript">
        //Put your JavaScript code here.
        function pageLoad() {
            var scheduler = $telerik.toScheduler($find("<%= RadScheduler1.ClientID %>"));
        }
    </script>

You can press Ctrl+Shift+J to update the IntelliSense in the Visual Studio. Now you are ready to use the IntelliSense.

Please let me know if this was helpful.

Best wishes,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
MOUSLIKI
Top achievements
Rank 1
answered on 14 Feb 2011, 04:17 PM
Hi Veronica,

thank you for your help, I have solved my problem using a server side code.

thank you,
Tags
Scheduler
Asked by
MOUSLIKI
Top achievements
Rank 1
Answers by
Veronica
Telerik team
MOUSLIKI
Top achievements
Rank 1
Share this question
or