Scheduler binding with webservices

6 posts, 0 answers
  1. Nishanth
    Nishanth avatar
    5 posts
    Member since:
    Mar 2012

    Posted 26 Feb 2013 Link to this post

    Hi,

        In my project am using rad scheduler, for binding scheduler am using webservice and am also using user control for Advance form insert/edit.

        In my user control i have added few more controls as per our project requirement. 
    While inserting i want to pass those additional infromation to the web service. 

        I have created a class by inheriting SchedulerInfo class as below, but dont know how to assign values to that class form jquery. 

        public class MySchedulerInfo : SchedulerInfo
    {
        public int EventId { get; set; }

    public MySchedulerInfo(ISchedulerInfo baseInfo, int eventID)
    {
      EventId = eventID;
    }
    }

    Am using jquery to call web service for insert & edit methods. In jquery we are able to set default values like description, subject, start time, end time and recurrence rule to the appointment object. But dont know how to pass the other informations to web service to insert/edit.

           Any one please provide some documents how to pass extra parameters to web services.

    With Regards,
    Nishanth.P
  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 27 Feb 2013 Link to this post

    Hi Nishanth,

     
    You can refer to this documentation article where similar behavior have been explained and check out our Web Service demo where similar behavior have been explained.

    Hope this will be helpful.

    Regards,
    Plamen
    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. Nishanth
    Nishanth avatar
    5 posts
    Member since:
    Mar 2012

    Posted 05 Mar 2013 Link to this post

    Hi Plamen ,

            Am using webservice settinf for binding scheduler, am facing issue in javascript. Javascript is not working properly below is the sample code for assigning text to div through javascript.

           var divt = document.getElementById('divtest');
           divt.innerHTML = 'changed New Value';

          If i remove webservice setting from scheduler then its working fine.

    Regard,
    Nishanth P
  4. Nishanth
    Nishanth avatar
    5 posts
    Member since:
    Mar 2012

    Posted 05 Mar 2013 Link to this post

    Hi Plamen ,
            i am using webservice for binding,insert, update appointments.
            
    For inserting/editing i am using Advance Form(User Control), in user control i added few more fields like planning note, Followup comments, Appointment Start time etc. And i am using jquery fo insert/edit. As per online document i have created "MySchedulerInfo" class by inheriting  SchedulerInfo class like below

      public class MySchedulerInfo : SchedulerInfo
    {
        public int EventId { get; set; }
        public string PlanningNote{ get; set; }
        public string FollowUp{ get; set; }
    public DatetTime ApptStartTime{ get; set; }
       
                   public MySchedulerInfo(ISchedulerInfo baseInfo, int eventID, string notes,string followup,datetime apptStarttime)
    {
                  EventId =eventID ; 
    PlanningNote=notes ; 
    FollowUp=followup; 
    ApptStartTime= apptStarttime
    }
        }

           And in webservice i have added insertappointment method like below

         [WebMethod]
        public IEnumerable<AppointmentData> InsertAppointment(MySchedulerInfo schedulerInfo, AppointmentData appointmentData)
        {
            return Controller.InsertAppointment(schedulerInfo, appointmentData);
        }

        And from jquery i am able to send default appointment class as parameter but am not able to send other information to insert.

          Jquery code:
              
              this._scheduler.insertAppointment(apt); -- Calling Web service method and passing appointment object as  parameter

           I tried in many ways am not getting solution.

           Please let me know how to pass other field values as additional parameters. 

    Regards,
    Nishanth
  5. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 08 Mar 2013 Link to this post

    Hello Nishanth,

     
    I am attaching a sample web page where similar behavior is implemented.

    Hope this will be helpful. 

    All the best,
    Plamen
    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.
  6. Nishanth
    Nishanth avatar
    5 posts
    Member since:
    Mar 2012

    Posted 11 Mar 2013 Link to this post

    Hi Plamen ,
            Thanks for your sample project. I will implement and let you know.


    Regards,
    Nishanth P
Back to Top