We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

for beginnger, just to show appointments

Hi All,

I'm new to Syncfusion, and trying to understand how to show the appointments from SQL Server with Schedule control.

In the project, I put the ScripManager, SqlDataSource and Schedule.

The SqlDataSouce returns the next fields: IDEvento, InicioEvento, FinEvento, TituloEvento, DescEvento

and the Schedule control has next code:

<ej:Schedule ID="Schedule1" runat="server" ClientIDMode="Static" DataSourceID="sdsEventos"  >
            <AppointmentSettings Id="IDEvento" Subject="TituloEvento" StartTime="InicioEvento" EndTime="FinEvento" Description="DescEvento" />
        </ej:Schedule>

When I run the project, it doesn't show anything, just an empty page. Of course the sql datasource returns rows.

What I'm doing wrong?.

It is Visul Studio 2013 and Syncfusion 15.1450.0.37



1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team March 24, 2017 07:27 AM UTC

Hi Victor, 
 
Thank you for contacting Syncfusion support. 
 
We suspect that required script files may not be referred correctly which could be the cause for the issue. We have prepared the simple Schedule sample which can be download from the below link and kindly refer the below code example used in the sample. 
 
<Code> 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> 
<ej:Schedule ClientIDMode="Static" runat="server" Height="525px" Width="100%" ID="Schedule1" DataSourceID="SqlData" CurrentDate="5/2/2014">     
    <AppointmentSettings ApplyTimeOffset="false" Id="Id" Subject="Subject" AllDay="AllDay" StartTime="StartTime" EndTime="EndTime" Description="Description" Recurrence="Recurrence" RecurrenceRule="RecurrenceRule"/> 
</ej:Schedule> 
    <asp:SqlDataSource ID="SqlData" runat="server" ConnectionString="<%$ ConnectionStrings:ScheduleSample %>" 
            SelectCommand="SELECT * FROM [MultipleResource]"></asp:SqlDataSource> 
</asp:Content> 
</Code> 
 
Regards, 
Karthigeyan 
 
 


Loader.
Up arrow icon