Schedular DataTypes

3 posts, 1 answers
  1. Tiago
    Tiago avatar
    25 posts
    Member since:
    Aug 2009

    Posted 21 Sep 2009 Link to this post

    Dear friends,

    Since yesterday that i am trying to bind my database with the radSchedular with no success. I have a very simple table with the fields 'Title','Description','StartDate','EndData'. I took a look at the examples but i cannot find the SchedularDataSet() type.

    I would like to ask you for some help on how can i make a reference so that i can use the SchedularDataSet() type, and, if possible, can you give-me a very simple example?

    Thanks in advance.

    My table is named 'tasks':
    idtask uniqueidentifier;
    description nvarchar(50);
    smallinfo nvarchar(15);
    startdate datetime;
    enddate datetime;


    Form_Load is:

    tarefasTableAdapter1.Fill(bdcrmDataSet.tarefas);
    AppointmentMappingInfo appointmentMappingInfo = 
    new AppointmentMappingInfo();
    appointmentMappingInfo.Start = 
    "startdate";
    appointmentMappingInfo.End = 
    "enddate";
    appointmentMappingInfo.Summary = 
    "smallinfo";
    appointmentMappingInfo.Description = 
    "description";
    schedulerBindingDataSource1.EventProvider.Mapping = appointmentMappingInfo;
    radScheduler1.DataSource = schedulerBindingDataSource1;



    The code give-me no erros, however, the schedular is empty with no info loaded. I checkd the dataset and it has data inside.
    Am i missing anything?
    Thank you.



  2. Tiago
    Tiago avatar
    25 posts
    Member since:
    Aug 2009

    Posted 22 Sep 2009 Link to this post

    Dear friends,

    O got it!!!

    Actually, it was loading data .. the problem is that is was loading to the year 1894 .. i don't understant why that date was in there but nevermind ...

    Don't mind answering, and, i believe some Admin shoud remove this thread.

    Thank you very much!
  3. Answer
    Robert
    Robert avatar
    82 posts
    Member since:
    Jun 2009

    Posted 22 Sep 2009 Link to this post

    Hey Tiago Pinho,

    I'm glad to hear you got it working. Persistence always pays off in the end. :)

    In case anyone else is interested in binding a database to the RadScheduler, here are some good resources:

    - Robert
Back to Top