This is a migrated thread and some comments may be shown as answers.
Appointment Click Issue
9 Answers 107 Views
This is a migrated thread and some comments may be shown as answers.
Suja
Top achievements
Rank 1
Suja asked on 17 Jan 2011, 12:05 PM
Hi,

Am trying to call a popup page of my own when appointment on radschduler is clicked.
I cannot give ReadOnly=false as I need to use <AdvancedInsertTemplate> too.
I am calling my popup in this manner:

 

 

protected void rsPeopleScheduler_OnAppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e){

 

 

try

 

 

 

 

{

 

//Response.Redirect("default.aspx?apptid=" + e.Appointment.ID);

 

 

 

 

 

string popupfrm = @"window.showModalDialog('PeopleJobDetails.aspx'

 

,''

,'dialogWidth:1500px; dialogHeight:700px; center:yes');"

 

;

 

 

RadScriptManager.RegisterClientScriptBlock(this,

 

 

this.GetType(),

 

 

"OpenPopupPeopleJobDetails",

 

popupfrm,

 

true);

 

}

 

catch (Exception ex)

 

{ }

 

finally { }

 

}

Its coming out fine but when I try to close the popup window:

 

 

RadScriptManager.RegisterClientScriptBlock(this,

 

 

this.GetType(),

 

 

"Close_Window",

 

 

"window.close();",

 

 

true);

 

It goes back radScheduler but with a appointment edit window open on the scheduler.

May I know how I can avoid that window?

9 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 Jan 2011, 02:05 PM
Hello Suja,

Yes, you need to cancel FormCreating similarly to this demo:

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
      {
          if (e.Mode == SchedulerFormMode.Insert || e.Mode == SchedulerFormMode.Edit)
          {
              EditedAppointmentID = e.Appointment.ID;
              e.Cancel = true;
              ScriptManager.RegisterStartupScript(Page, GetType(), "formScript", "Sys.Application.add_load(openForm);", true);
              PopulateEditForm(e.Appointment);
          }
      }


Kind regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Suja
Top achievements
Rank 1
answered on 18 Jan 2011, 03:07 AM
Hi Peter,

Thank you very much it worked well.
0
Suja
Top achievements
Rank 1
answered on 18 Jan 2011, 08:52 AM
Hi Peter,

Working on radsheduler resources section. Requirement is:
- Got more than one resources bound to one appointment
- need to show more than one resources vertically for one appointment : means one appointment should show related resource names line by line


0
Suja
Top achievements
Rank 1
answered on 18 Jan 2011, 10:05 AM
Hi Peter,

Another issue am facing is attached jpg file time line view:
- how to handle the calendar view if time line view got no appts or just one
- as calendar is getting cut off
0
Peter
Telerik team
answered on 18 Jan 2011, 04:27 PM
Hello Suja,

You need to implement a Provider That Supports Multi-valued Resources:
http://www.telerik.com/help/aspnet-ajax/schedule_databindingimplementingaproviderthatsupportsmultivaluedresources.html

However, if you need to choose items from related RadComboBox instances, you are better off using custom attributes and the advanced templates. Here are two very helpful kb artilcles that will help you get started:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/implement-related-radcombobox-controls-in-the-advanced-form.aspx

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/related-load-on-demand-radcomboboxes-in-the-advanced-form-of-radscheduler.aspx

As for the popup calendar getting chopped off, this was a problem with previous versions which we have fixed by maintaining minimum height in Timeline view. Do you use the latest official version?


Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Suja
Top achievements
Rank 1
answered on 19 Jan 2011, 02:56 AM
Hi Peter,

Thanks for kbs. I will explore on it.

Regarding version update i need to check internally.

Thanks a lot.
0
Suja
Top achievements
Rank 1
answered on 21 Jan 2011, 04:32 AM
Hi Peter,

Version am using is: <image:telerikversion.jpg>
Based on this version, Please help me to solve and achieve the following:
1. My maste page holds the asp.menu bound to sitemap. After creating the page holding the radscheduler which will the first page which some users see, I found that the menu items are not shown to top of the radscheduler. <Attached the image file: OnTopOfAspMenu.jpg>
2. Related to resources in timeline view - will be showing only that view:
2.1. any way to align the resources to left which is vertically shown. <image file:ResourceAndRowAlignment.jpg>
2.2. want to highlight first one or two resources (based on a business logic). how to achieve it?
2.3. is there a way to show day commonly as a row on top of am and pm row or any work around to achieve it (may group by resources horizontally or something like that?), this will be needed if i need to show user 2 weeks slots. then while my current setting to show the date and weekday looks a bit difficult for the eyes. <image file:2WeeksSlotsView.jpg>
2.4. currently timeline view is showing an appt as one line for the resource and row is having some space after that which looks quite odd. Is there any way to achieve auto adjustment of row height 
 - first will be based on resource lenght and wrapping if no appts
 - if any appts then just resource and then appt
<image:AutoRowHeight.jpg>

Thanks in advance
Suja
0
Peter
Telerik team
answered on 26 Jan 2011, 02:35 PM
Hi Suja,

I recommend you use the current version.

Regarding your questions:

1. You can fix this problem by setting the z-index attribute of the menu. Please, see this topic for details - http://www.telerik.com/help/aspnet-ajax/controlling-absolute-positioning-with-zindex.html

2.1. Try adding the following css:

.rsMainHeader 
   width: auto !important
   text-align:left !important

2.2. You can try the following jQuery solution:

<script type="text/javascript">
       function pageLoad()
       {
           $telerik.$(".rsMainHeader").eq(0).css("background", "green");
       }
   </script>

2.3. You can try setting <TimelineView TimeLabelSpan="2" /> .

2.4. The following setting will remove the extra row: <TimelineView ShowInsertArea="false" />.



Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Suja
Top achievements
Rank 1
answered on 23 Feb 2011, 10:10 AM
Hi Peter,

Thanks for the solutions provided,
I am in to core use of it and developing stage

Unfortunately i will not be able to change the version right now and so I will have work with what i have

Solution 2.1. Try adding the following css
>> resource alignment dint work , why is it so
>> but width working thanks

2.2. You can try the following jQuery solution:
>> it always highlihts only first one
>> anyway from code behind i have a logic to check 
and then change resouce color dynamically?
>> as it can be first one or two or three resources colors that need to be changd
>> so how to achive it

2.3. You can try setting <TimelineView TimeLabelSpan="2" />
>> then this will take off my pm slot
>> which i need
>> so this solution will not work for me

2.4. The following setting will remove the extra row: <TimelineView ShowInsertArea="false" />.
>> this will not allow me to insert any appt which i have
>> so this will not work for me either

Please help thanks
Regards
Suja



Asked by
Suja
Top achievements
Rank 1
Answers by
Peter
Telerik team
Suja
Top achievements
Rank 1
Share this question
or