Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - SOLVED : Disable Editing on Calendar events
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED : Disable Editing on Calendar events

 Post Reply Post Reply
Author
Message
cmdbarSys View Drop Down
Groupie
Groupie


Joined: 30 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmdbarSys Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED : Disable Editing on Calendar events
    Posted: 25 February 2009 at 5:46pm
I want to disable editing on Calendar events. The users should not be able to change the subject or drag it or change the size of a Calendar event. How do I do this? I did not find any property as such for the CalendarEvent object which would disable editing.

CalendarEvent NewEvent;

NewEvent = calCalendar.DataProvider.CreateEvent();

NewEvent.AllDayEvent = true;

NewEvent.Subject = "abcd";

NewEvent.StartTime = StartDate;

NewEvent.Label  = 1;

calCalendar.DataProvider.AddEvent(NewEvent);

Back to Top
cmdbarSys View Drop Down
Groupie
Groupie


Joined: 30 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmdbarSys Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2009 at 6:04pm
Just figured it out by using the following event
 

private void calCalendar_IsEditOperationDisabled(object sender, AxXtremeCalendarControl._DCalendarControlEvents_IsEditOperationDisabledEvent e)

{

e.bDisableOperation = true;

}

Product: Xtreme SuitePro ActiveX v13.1.0
Platform: Windows Vista Business(32bit) - SP 2
Language: Visual C#(Visual Studio 2008)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.