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

Help with AdvancedFormTemplate

11 Answers 181 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Julie Zhang
Top achievements
Rank 1
Julie Zhang asked on 24 May 2010, 08:44 PM

Hi

I am new to Telerik Scheduler. I am trying to create My Calendar web page by using  my own AdvancedFormTemplate and  use Telerik Scheduler  DataSource for data binding , since I need to handle  my own insert, update and delete.   I need to have  several  custom properties such as Location,  appointment Type and IsSuggestedEvent and recourses such as list of other participation appointments for the same event.   In my AdvancedFormTemplate, I need to allow  user to add  other participators  for an  event, which will create the list of other participation appointments.

Should these custom properties and list of participation appointments are all handled as resource?  Do you have any example using own business objects?

 

Thanks in advance

 

 

11 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 May 2010, 12:58 PM
Hi Julie,

I recommend you consider using the Advanced Templates demo for this scenario. If you need further assistance with this, do let us know.


Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Julie Zhang
Top achievements
Rank 1
answered on 27 May 2010, 02:29 PM

Thanks Peter,  I have spent a lot time to get your sample Advanced Templates to work in my testing site.  But it still doesn’t work. It seems to me that the data binding is not work for template. I am not sure what is missing.   Could you send me some Advanced Template  example using datasource  of generic and non-generic collections.

 

I do have question about how to store our own  data attributes such as location, app. type, url, contact email….  Only location requires user to enter data, the rest is read only from Database.  It seems to me that I can’t define individuate attribute as ready only.  I may be invisible read only attributes by JavaScript? Another other solutions?

 


THANKS A LOT for your help!

 

Julie

0
Peter
Telerik team
answered on 28 May 2010, 03:32 PM
Hi Julie,

I am sending you a demo of the Advanced Templates and  AppointmentInfo list as the datasource for RadScheduler. I hope you find it helpful.


All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Julie Zhang
Top achievements
Rank 1
answered on 29 May 2010, 01:49 PM
Hi Peter,

Thanks so much for your help. My advancedFormTemplate finally works by using the datasource of AppointmentInfo list !  I still have some  questions and issues.

1.  The performance and browser issue.   When clicking option to open advancedForm user control , it takes a couple seconds to open up the editing from in my IE 7.   Firefox is a bit better.  But  for  Safari,  I can't even do anything in Safari (3.12), I mean even the default inline inserting is not working.   in Safari, I can open see the  appointments.     How can I support for most of browsers and get better performance? Any other solutions? I saw you can use external RadDock. Is this a good solution for performance and browser?

2. I don't need to use resources to add/edit appointments,  but  my appointments have several text or boolean values.  I only need to set location text field as attribute, which will requrie user to enter location text field.  I don't want to set other text and boolean fields as attributes,  since these data fields are read only from database.  I don't know what is best way to data binding these data for appointment.   Should I use hidden fields for these data fields?
 I need to use these fields in 

AppointmentDataBound event 

 to dynamically calculate if the appointment is  editable/read only/adding new/color code.... 

3. Scheduler time Zone.  We are using Eastern stand time.  I don't set any time offset, which is fine since the appointment time in database is same as Eastern time and are displayed correctly in web scheduler.   But when I export to Outlook, the time is convert to  UTC time and I will  need to use time offset.  Is this the right way to do?

Best Ragards

Julie

0
Peter
Telerik team
answered on 02 Jun 2010, 03:17 PM
Hello Julie,

1. To improve performance, you should not use the modal form (<AdvancedForm Modal="false" />).

2. Attached is a demo in which i have exposed two custom attributes in the appointmentInfo class - Location and Color. Only Location is shown in the advanced form. The Color value however is used to set the BackColor of the appointments.

3. Please, review the following kb article:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-preserve-the-time-of-the-appointments-when-exporting-to-icalendar.aspx

Let me know if you have further questions.


Cheers,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Julie Zhang
Top achievements
Rank 1
answered on 04 Jun 2010, 08:16 PM

Hello Peter,

Your sample code really helps me to code the scheduler.  The attributes are simply stored in e.Appointment.Attributes.  Now my test app works much better.  I do still have issues and  questions.

1.  For Safari (3.12), I can only see the default day view page, all post back doesn't seem working.  I click week view, month view or double click on appointment, nothing happened.    I am guessing it must be related to some css or JavaScript code.

2.  My appointment has location attribute, when I export to Outlook, the location data is missing.  The subject, start and end data are fine.

3.  We have several different types of appointments. I have set different back colors for appointments using predefined types (rsCategoryBlue, rsCategoryRed,....) in Day, Week and month view.  I am trying to match the same back color in appointment detail user control.  I have added a top asp panel  to dynamically set it's back color to match appointment.  But it causes JavaScript code is not working.  What's the better solution for this? 

4.  I'd like to add delete button  in appointment detail user control, can I easily  use the same warning message confirmation box in inline delete?

Thanks again and I truly appreciate all the help form you.

Best Regards

Julie





0
Peter
Telerik team
answered on 09 Jun 2010, 02:00 PM
Hi Julie,

1. For this problem we will probably need a live url or a simple working demo since we do not experience such an issue at our end.

2. Indeed, custom attributes or resources are not exported, but we have added the description field when exporting appointments. You can easily rename 'Description' to 'Location' in the advanced form using the localization property:Localization-AdvancedDescription="Location". Adding a description field is easily accomplished as well. I hope this offers you an acceptable alternative.

3. We have improved the rendering of appointments with Q1 2010. You can read more on the matter in the following blog post:
http://blogs.telerik.com/kamenbundev/posts/10-03-12/improved_appointment_rendering_in_radscheduler_for_asp_net_ajax_q1_2010.aspx

With the current version you can set the BackColor property to any color:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e) 
    
        e.Appointment.BackColor = System.Drawing.Color.Red; 
    }

And to keep the rounded corners and gradients, just set AppointmentStyleMode="Default" for RadScheduler.

4. RadScheduler's client object exposes teh  deleteAppointmentWithConfirmation() method which will help you with this requirement.


All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Julie Zhang
Top achievements
Rank 1
answered on 17 Jun 2010, 08:11 PM
Hello Peter,

I have submited a ticket, my ticket ID is : 319982. When you get chance, could you take a look my testing site and questions/issues?

Thank you very much!

Best Regards

Julie
0
Yana
Telerik team
answered on 23 Jun 2010, 08:34 AM
Hello Julie,

Thank you for sending the site, we'll test it as soon as possible.

Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Julie Zhang
Top achievements
Rank 1
answered on 08 Jul 2010, 01:31 AM

Hi Peter,

When you have chance, could you take a look at my ticket, 319982.  We have already purchased four developer licenses and we need to release  our My Calendar in earlier August.  We really need your help on solving these issues.

Another question is that since we will  load each user appointments ( several month or a couple year's appointments)  into session variable for schedule, it is possible that with high traffic web server's CPU usage will be quite high.  We are thinking for a possible solution that to load appointments when needed.  For example the initial loading is only  for current month's appointments, when user click next month, the postback  call will load next month's appointments. 

Is this possible?

 

Thanks a lot

 

Julie


   


Another question is that is that prossible when user click on week, or month view, the data bindling will reload.
0
Peter
Telerik team
answered on 16 Jul 2010, 12:04 PM
Hi Julie,

We have replied to the support ticket. Please, keep any other correspondence there.

As for the additional question, I am not sure what you mean, but I suggest you try calling the Rebind() method if you need to refresh the data for RadScheduler.


Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Julie Zhang
Top achievements
Rank 1
Answers by
Peter
Telerik team
Julie Zhang
Top achievements
Rank 1
Yana
Telerik team
Share this question
or