How to bind/delete/insert data in radscheduler with multi tier architecture?

4 posts, 0 answers
  1. Chan
    Chan avatar
    4 posts
    Member since:
    Nov 2011

    Posted 13 Dec 2011 Link to this post

    hi, i m new in telerik and c#, now i m trying to learn multi tier architecture with telerik tools...
    i try to did some research to find some tutorial but it was not useful...like if i want to bind to radscheduler fields, is it write like something "RadScheduler.DataKeyField = "id"" or "RadScheduler.DataBind();" in the default c# UI page? And the select data connectionstring is write on business logic page right? if have any tutorial or any sample can help me pls give me a link, thx...    
  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 14 Dec 2011 Link to this post

    Hi Chan,

    To learn about the RadScheduler's  binding to a data source,  you could refer to the Data Binding section of the RadScheduler's online documentation. You could also take a look at the data providers which are listed and explained in details in the same section. The Populating With Data online demos could also help to see the difference between the data sources in action.

    The following Code Library example might be of help, too; it is a runnable sample project showing how to bind the RadScheduler to a SqlDataSource: RadScheduler and SqlDataSource example.


    Regards, Ivana
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. Chan
    Chan avatar
    4 posts
    Member since:
    Nov 2011

    Posted 14 Dec 2011 Link to this post

    Sorry, this is not what i m looking for...i m not looking binding sql data with the Data Source Configuration Wizard, i m confusing in the how multi tier architecture work with telerik radscheduler, for example, if i create a DataLayer and Business Logic in my project, how to make them bind the data in the radscheduler key fields?  i try to used this code:

     

     

    DataSet dsAppointment = new DataSet();

     


    RadScheduler1.DataSource = dsAppointment;

    RadScheduler1.DataKeyField =

     

    "Appt_ID";

     

    RadScheduler1.DataSubjectField =

     

    "Appt_Subject";

     

    RadScheduler1.DataStartField =

     

    "Start";

     

    RadScheduler1.DataEndField =

     

    "End";

     

    RadScheduler1.DataBind();

    in the defaultUI C# is no work n show error, what m i missing or misunderstanding?Thx.

  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Dec 2011 Link to this post

    Hi Chan,

    Probably, the following demo will help you find an answer to your uesions -
    http://demos.telerik.com/aspnet-ajax/scheduler/examples/bindtolist/defaultcs.aspx.

    You can also download a sample with ObjectDataSource from here.

    Greetings,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top