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

Scheduler binding with webservices

5 Answers 77 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nishanth
Top achievements
Rank 1
Nishanth asked on 26 Feb 2013, 12:45 PM
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

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Feb 2013, 08:45 AM
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.
0
Nishanth
Top achievements
Rank 1
answered on 05 Mar 2013, 12:53 PM
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
0
Nishanth
Top achievements
Rank 1
answered on 05 Mar 2013, 06:09 PM
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
0
Plamen
Telerik team
answered on 08 Mar 2013, 10:16 AM
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.
0
Nishanth
Top achievements
Rank 1
answered on 11 Mar 2013, 08:57 AM
Hi Plamen ,
        Thanks for your sample project. I will implement and let you know.


Regards,
Nishanth P
Tags
Scheduler
Asked by
Nishanth
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Nishanth
Top achievements
Rank 1
Share this question
or