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

[Solved] AppointmentClick() not firing when .AllowEdit() = False

4 Answers 196 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
aea13
Top achievements
Rank 1
aea13 asked on 14 Feb 2008, 05:52 PM
I must be missing something obvious...

I have a scheduler setup (the previous release of prometheus, not the most recent one, VS2005/vista/ie7/MSServer2003), using ResourceView (not that I think it would matter), that I can't get to fire off the following:

 Protected Sub RadScheduler1_AppointmentClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentClick
        panGuests.Visible = True  'show details panel
        GrabMeetingInfo(CType(e.Appointment.ID, Integer))
    End Sub

Unless I set AllowEdit to True.  At which point though I also get that editing screen, which I don't want to see.

Am I correct to assume that the AppointmentClick() Sub should fire off when I click on an appointment in the calendar?  Or do I need to mess with the client side java onappoitnmentclick()?

Please clue me in :)

Also, I couldn't seem to find a concrete listing of the columns datatypes the schedule looks for when assigning values to the various fields (date/time/etc).  It  seems to think that most if not all of the meetings in the database i have to work with are recurrent meetings when i know 99% of that (at least) aren't.  Although this might be a mute issue since that message only comes up on the edit screen which i don't want to see anyway...

4 Answers, 1 is accepted

Sort by
0
aea13
Top achievements
Rank 1
answered on 15 Feb 2008, 02:53 PM
Just additional info.
I am more or less after what the guy in the below post was searching for:
http://www.telerik.com/community/forums/thread/b311D-bbhght.aspx

Unfortunately I wasn't sure whether the code he used in there worked for him as there hasn't been an update yet.  The javascript in that example executes for me, but unfortunately i'm not sure how to modify to just tell it to execute the private sub in the aspx file instead of doing the alert...
0
Peter
Telerik team
answered on 15 Feb 2008, 04:23 PM
Hi,

Actually, the AppointmentClick event fires on double click of the appointment. From the code you sent, I assume that you need to display a window with details of the appointment. If that's the case, please refer to the attached project which shows both client and server side solution of this funtionality using OnClientAppointmentClick event and RadWindow. 

I hope this helps. 
 

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
aea13
Top achievements
Rank 1
answered on 15 Feb 2008, 05:54 PM
THANK YOU VERY MUCH PETER! :)

After some tweaking around I go the client side example to work perfectly. 

Incidentally, when I initially tried to get the ID of the record via an example i saw one of you use in a previous post it never liked it:
        var apt = eventArgs.get_Appointment();   
         var id = apt.ID; 

but the following worked perfectly:
        var id = eventArgs.get_appointment().ID;

Now I'm just going to have to find the section in the manual about configuring default sizes/etc for that popup window.

Thanks for the help.  You guys have always come through for me.  Money very well spent.

Now on to find the next wall :)


-andy
0
Peter
Telerik team
answered on 18 Feb 2008, 11:56 AM
Hi Andy,

Regarding the first issue, we changed the API naming convention to be all lower case. If you have upgraded to a newer version and you used the syntax for the older version, you will experience this problem. We appologize for not documenting this change better and making it more visible.

A for the second question, you can control the dimensions of the popup window with the Height and Width properties of the RadWindowManager:

 <telerik:RadWindowManager ID="RadWindowManager1" Width="800px" Height="800px" runat="server">  
        </telerik:RadWindowManager> 

Please, let us know if there are any problems left unresolved. We will be happy to help you.


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
aea13
Top achievements
Rank 1
Answers by
aea13
Top achievements
Rank 1
Peter
Telerik team
Share this question
or