Represents the main visual element for the agenda view in RadScheduler, providing a list-based display of appointments using a RadGridView control for efficient appointment management and navigation.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerAgendaViewElement : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerViewElementSchedulerAgendaViewElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the SchedulerAgendaViewElement class with the specified scheduler control and view configuration, setting up the grid-based agenda interface.
public SchedulerAgendaViewElement(RadScheduler scheduler, SchedulerView view)
The RadScheduler control that owns this view element.
viewSchedulerViewThe SchedulerView that this element represents.
Properties
Gets the RadGridView instance used to display appointments in a tabular list format within this agenda view.
public RadGridView Grid { get; }
Gets or sets the height in pixels of the resource header rows displayed in the agenda view grid when resources are grouped.
public int ResourceHeaderHeight { get; set; }
Methods
Arranges the child elements within the available space, positioning the navigation elements on the sides of the agenda view grid.
Creates and returns a new RadGridView instance for displaying appointment data in the agenda view with default configuration.
protected virtual RadGridView CreateGrid()
A configured RadGridView control ready for appointment display.
Customizes the grid column widths, visibility, and formatting settings to optimize the display of appointment information in the agenda view.
protected virtual void CustomizeColumns()
Gets the cell element at the specified grid position, which is not applicable for the agenda view as it uses a different layout structure.
Gets the table layout coordinates for the specified cell element, which is not applicable for the agenda view as it uses a grid-based layout.
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
The SchedulerCellElement to get coordinates for.
Returns:An empty TableLayoutPanelCellPosition as the agenda view does not use a traditional cell coordinate system.
Overrides:
Configures grouping descriptors for the grid based on the current grouping settings, handling resource grouping and date grouping scenarios.
protected virtual void HandleGrouping()
Initializes the child elements including the grid control and sets up the complete agenda view interface with navigation elements.
protected virtual void InitializeChildren()
Localizes the grid column headers and configures the column display properties, setting up the agenda view for the first time or after data changes.
protected virtual void LocalizeGridColumns()
Applies localized text to all grid column headers using the current localization provider for scheduler-specific strings.
protected virtual void LocalizeGridColumnsCore()
Called when the element is loaded and applies theme settings to child elements including the grid and navigation components.
protected override void OnLoaded()
Overrides:
Handles view property changes, updating the grid data source and grouping configuration based on specific property modifications.
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
The source of the event.
ePropertyChangedEventArgsThe PropertyChangedEventArgs instance containing the event data.
Overrides:
Processes and displays the context menu for the specified appointment at the given screen location, handling menu item visibility and appointment selection.
protected virtual bool ProcessContextMenu(Appointment appointment, Point location)
The Appointment to display the context menu for.
locationPointThe screen location where the context menu should be displayed.
Returns:True if the context menu was successfully displayed, false otherwise.
Configures the RadGridView control used to display appointments in list format, including data binding, event handling, visual appearance settings, and grouping configuration.
protected virtual void SetupGrid()
Configures the forward and backward navigation elements for moving between appointments in the agenda view, setting up their text and visual orientation.
protected virtual void SetupNavigators()
Subscribes to the necessary grid events for handling appointment interaction, display customization, and user input processing.
protected virtual void WireEvents()