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

[Solved] DataBinding issue

1 Answer 98 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jayanthy
Top achievements
Rank 1
Jayanthy asked on 28 May 2008, 09:41 PM

I'm trying to bind my rad scheduler with database table data. The data is not getting binded according to the event date. All events gets binded to the current date instead of binding to their appropriate dates. I'm not sure if the DataStartField and DataEndField refers to the start & end dates or start & end times. I only have one date field ( "eventdate") & 2 time fields ("eventtime" & "endtime")  in my database.
Here is my code

 <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime" Skin="Office2007" EnableEmbeddedSkins="True"
            DataKeyField="EventID" DataSourceID="SqlDataSource1" DataStartField="EventTime" DataSubjectField="Title" GroupingDirection="Horizontal" StartInFullTime="True" ShowFooter="False" StartInsertingInAdvancedForm="True" MinutesPerRow="15"></telerik:RadScheduler>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:Calendar %>"
            SelectCommand="SELECT * FROM [EventsSites]"></asp:SqlDataSource>  

This is the first time I'm using Rad Scheduler, so this might be a silly issue too. Any help would be appreciated.
                   
              

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 29 May 2008, 08:50 AM
Hi Jayanthy,

Thank you for using RadScheduler.

The DataStartField and DataEndField refer to the start & end time of the appointment which should be of type DateTime and which should contain information for both date and time. For more informaion, please refer to the Database structure help topic.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Jayanthy
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or