Intersoft ClientUI Documentation
CanUserEditItems Property
See Also  Send Feedback
Intersoft.Client.UI.ScheduleView Namespace > UXScheduleView Class : CanUserEditItems Property






Gets or sets a value that determines whether user can edit events.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property CanUserEditItems As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UXScheduleView
Dim value As Boolean
 
instance.CanUserEditItems = value
 
value = instance.CanUserEditItems
C# 
[CategoryAttribute("Common Properties")]
public bool CanUserEditItems {get; set;}
Delphi 
public read-write property CanUserEditItems: Boolean; 
JScript 
CategoryAttribute("Common Properties")
public function get,set CanUserEditItems : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property bool get_CanUserEditItems();
public: __property void set_CanUserEditItems( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property bool CanUserEditItems {
   bool get();
   void set (    bool value);
}

Remarks

Data editing in UXScheduleView involves three fundamental processes, Create, Update and Delete (CUD). You can enable each editing feature by setting the property CanUserAddItems, CanUserDeleteItems, CanUserEditItems, CanUserMoveItems, CanUserResizeItems.

Enable Editing Copy Code
<Intersoft:UXScheduleView DisplayDate="1/2/2012"
            EventsSource="{Binding Events}" CategoriesSource="{Binding Categories}" ResourcesSource="{Binding Resources}"
            CanUserAddItems="True" CanUserDeleteItems="True" CanUserEditItems="True" CanUserMoveItems="True" CanUserResizeItems="True">
    <Intersoft:UXScheduleDayView/>
    <Intersoft:UXScheduleWorkWeekView/>
    <Intersoft:UXScheduleWeekView IsActive="True"/>
    <Intersoft:UXScheduleMonthView/>
</Intersoft:UXScheduleView>

Editing an Event

When the CanUserEditItems property is set to true, you can edit the event in UXScheduleView. To edit an event, first you need to select the event to edit, then you can choose one of the provided options to edit the event as follows.

Editing a recurring pattern using the editing form will cause all the exception events to be deleted.

Mouse Actions

  • Double click to open the event detail, and click the edit button / split button depending on the type of your event. 
     
  • Second click to trigger inline editing.
     

Keyboard Actions

  • Press F2 to trigger inline editing.
     
  • Press Escape to cancel the editing.

Context Menu

You can also use context menu to directly edit an existing event. In this case, the editing form will be shown instead of activating inline editing.

The context menu smartly adapts its commands depending on the type of selected event. The figure above illustrates the context menu when the selected event type is a recurring event.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.