We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get the selected resource

Thread ID:

Created:

Updated:

Platform:

Replies:

129436 Mar 17,2017 02:24 PM UTC Mar 20,2017 12:59 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Schedule
Victor Watanabe
Asked On March 17, 2017 02:24 PM UTC

Hi all,

How can I get the select resource data of Schedule control?.

The situacion is:

I'm new to Syncfusion, and trying to use the Schecule control of ASP.NET Classic.

I could show the appointments saved in the database, and also I could use Window control to use custom window to add the appointment, but I could not find yet the property to get the selected resource code, to save to  database the new appointmente.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On March 20, 2017 12:59 PM UTC

Hi Victor,   
   
Thank you for contacting Syncfusion support.   
   
We would like to inform you about our new ASP.Net platform since you’re new to Syncfusion controls. ASP.Net platform controls has more features and enhanced performance compared to ASP.Net classic controls and please visit the below links to know more about ASP.Net controls. We have prepared the resource CRUD sample in ASP.Net platform which can be download from the below location. 
 
Please refer the below code example used in the sample. 
 
<Code> 
[WebMethod] 
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)] 
        public static List<ScheduleAppointment> GetData() // This will trigger to bind the appointments data to schedule control 
        { 
           
           return  new ScheduleDataDataContext().ScheduleAppointments.Take(10).ToList(); // nw.Appointment.Take(5); 
          
        } 
        [WebMethod] 
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)] 
        // This will trigger while saving the appointment through detail window 
        public static List<ScheduleAppointment> CrudResult(List<ScheduleAppointment> added, List<ScheduleAppointment> changed, List<ScheduleAppointment> deleted) 
        { 
            ScheduleDataDataContext db = new ScheduleDataDataContext(); 
            int intMax = db.ScheduleAppointments.ToList().Count > 0 ? db.ScheduleAppointments.ToList().Max(p => p.Id) : 0; 
            if (added != null && added.Count > 0) 
            { 
                ---------- 
                ---------- 
                 
            } 
            if (changed != null && changed.Count > 0) 
            { 
                 ---------- 
                 ---------- 
                
            } 
 
            if (deleted != null && deleted.Count > 0) 
            { 
                 ---------- 
                 ---------- 
            } 
            return db.ScheduleAppointments.ToList(); 
        } 
        [WebMethod] 
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)] 
        public static List<ScheduleAppointment> InsertData(ScheduleAppointment value) // This will trigger while saving the appointment through quick window 
        { 
            ScheduleDataDataContext db = new ScheduleDataDataContext(); 
            --------- 
            --------- 
        } 
       [WebMethod] 
        public static List<ScheduleAppointment> UpdateData(ScheduleAppointment value) //This will trigger while saving the resize or drag and drop the appointment 
        { 
            ScheduleDataDataContext db = new ScheduleDataDataContext(); 
            ---------- 
            ---------- 
        } 
       [WebMethod] 
        public static List<ScheduleAppointment> RemoveData(string key) // This will trigger to delete the single appointment 
        { 
            ScheduleDataDataContext db = new ScheduleDataDataContext(); 
            ------------ 
            ------------ 
        } 
</Code> 
 
Note: If you wish to proceed in Classic platform, please revert us. 
   
Regards,   
Karthigeyan   
  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;