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






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

Syntax

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

Deleting Events

When the CanUserDeleteItems property is set to true, you can delete one or more events that currently selected in UXScheduleView. To delete the item you can simply use the Delete key or using the context menu. Similar to editing context menu, the menu item for delete action is also adaptable depending on the type of the event such as shown in the figure below.

When you delete multiple events, it will check whether there are recurring event in the collection. If there is a recurring events, it will prompt a dialog asking whether you want to delete the series or only the particular occurrence. This action will be repeated until all recurring events have been confirmed.

Deleting a standard event will directly delete the event without showing the prompt dialog box.

 

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.