LogoLogo
HomeNewsSupportVideos
v4.0
v4.0
  • Wisej.NET API
  • What's New
  • Releases
  • Concepts
  • Themes
  • Extensions
  • Wisej.Web
    • General
      • Application
        • Client
        • ClientBrowser
        • ClientCollection
        • ClientPlatform
        • ClientProfile
        • ClientTheme
        • Configuration
        • LoadConfigurationEventArgs
        • LoadConfigurationEventHandler
        • PlatformProvider
        • Application.FormCollection
        • Application.PageCollection
        • Application.RequestType
        • HashChangedEventArgs
        • HashChangedEventHandler
        • LicenseErrorEventArgs
        • LicenseErrorEventHandler
        • RequestEventArgs
        • RequestEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
      • BackgroundWorker
      • BindableComponent
      • Clipboard
      • Component
      • Control
        • Control.ControlCollection
        • ControlEventArgs
        • ControlEventHandler
        • DragEventArgs
        • DragEventHandler
        • FocusEventArgs
        • FocusEventHandler
        • HelpEventArgs
        • HelpEventHandler
        • JavaScript.ClientEvent
        • JavaScript.ClientEventCollection
        • KeyEventArgs
        • KeyEventHandler
        • KeyPressEventArgs
        • KeyPressEventHandler
        • LayoutEventArgs
        • LayoutEventHandler
        • MouseEventArgs
        • MouseEventHandler
        • PaintEventArgs
        • PaintEventHandler
        • PinchEventArgs
        • PinchEventHandler
        • PreviewKeyDownEventArgs
        • PreviewKeyDownEventHandler
        • QueryContinueDragEventArgs
        • QueryContinueDragEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
        • RotateEventArgs
        • RotateEventHandler
        • SwipeAxis
        • SwipeDirection
        • SwipeEventArgs
        • SwipeEventHandler
        • TouchEventArgs
        • TouchEventHandler
        • TrackEventArgs
        • TrackEventHandler
        • WebEventArgs
        • WebEventHandler
        • WidgetEventArgs
        • WidgetEventHandler
      • Cursor
      • Cursors
      • DataObject
      • Padding
      • Screen
      • SessionReference<T>
    • Buttons
      • Button
        • MenuButtonItemClickedEventArgs
        • MenuButtonItemClickedEventHandler
      • ButtonBase
      • CheckBox
      • RadioButton
      • SplitButton
    • Common Dialogs
      • ColorDialog
      • CommonDialog
      • FileDialog
      • FileDialogLoadPathEventArgs
      • FileDialogLoadPathEventHandler
      • FileDialogRootCollection
      • FileDialogUI
      • FolderBrowserDialog
      • FolderBrowserDialogUI
      • OpenFileDialog
      • SaveFileDialog
    • Containers
      • Accordion
        • Accordion.PanelCollection
        • AccordionAction
        • AccordionCancelEventArgs
        • AccordionCancelEventHandler
        • AccordionEventArgs
        • AccordionEventHandler
        • AccordionPanel
      • ContainerControl
        • AcceleratorEventArgs
        • AcceleratorEventHandler
      • DataRepeater
        • DataRepeaterAddRemoveItemsCancelEventArgs
        • DataRepeaterAddRemoveItemsCancelEventHandler
        • DataRepeaterAddRemoveItemsEventArgs
        • DataRepeaterAddRemoveItemsEventHandler
        • DataRepeaterDataErrorEventArgs
        • DataRepeaterDataErrorEventHandler
        • DataRepeaterItem
        • DataRepeaterItemCloneEventArgs
        • DataRepeaterItemCloneEventHandler
        • DataRepeaterItemEventArgs
        • DataRepeaterItemEventHandler
        • DataRepeaterItemValueEventArgs
        • DataRepeaterItemValueEventHandler
        • DataRepeaterLayoutStyles
      • Desktop
        • DesktopTaskBarItem
        • DesktopTaskBarItemClickEventArgs
        • DesktopTaskBarItemClickEventHandler
        • DesktopTaskBarItemCollection
        • DesktopTaskBarItemControl
        • DesktopTaskBarItemDateTime
      • FlexLayoutPanel
        • FlexLayoutStyle
      • FlowLayoutPanel
        • FlowDirection
      • Form
        • CloseReason
        • FormBorderStyle
        • FormClosedEventArgs
        • FormClosedEventHandler
        • FormClosingEventArgs
        • FormClosingEventHandler
        • FormStartPosition
        • FormWindowState
        • MdiClient
        • MdiTabProperties
      • GroupBox
      • Page
      • Panel
      • ScrollableControl
        • ScrollEventArgs
        • ScrollEventHandler
      • SlideBar
      • SplitContainer
        • FixedPanel
        • SplitterCancelEventArgs
        • SplitterCancelEventHandler
        • SplitterEventArgs
        • SplitterEventHandler
        • SplitterPanel
      • StatusBar
        • StatusBar.StatusBarPanelCollection
        • StatusBarControl
        • StatusBarPanel
        • StatusBarPanelAutoSize
        • StatusBarPanelBorderStyle
        • StatusBarPanelClickEventArgs
        • StatusBarPanelClickEventHandler
      • TabControl
        • TabAlignment
        • TabControl.TabPageCollection
        • TabControlAction
        • TabControlCancelEventArgs
        • TabControlCancelEventHandler
        • TabControlEventArgs
        • TabControlEventHandler
        • TabPage
        • TabSizeMode
      • TableLayoutPanel
        • ColumnStyle
        • RowStyle
        • TableLayoutColumnStyleCollection
        • TableLayoutControlCollection
        • TableLayoutPanelCellPosition
        • TableLayoutPanelGrowStyle
        • TableLayoutRowStyleCollection
        • TableLayoutSettings
        • TableLayoutStyle
        • TableLayoutStyleCollection
      • ToolBar
        • ToolBar.ToolBarButtonCollection
        • ToolBarButton
        • ToolBarButtonClickEventArgs
        • ToolBarButtonClickEventHandler
        • ToolBarButtonSizeMode
        • ToolBarButtonStyle
        • ToolBarTextAlign
      • UserControl
      • UserPopup
    • Content
      • AspNetPanel
      • Canvas
        • CanvasCompositeOperation
        • CanvasLineCap
        • CanvasLineJoin
        • CanvasRepeatPattern
        • CanvasTextAlign
        • CanvasTextBaseline
      • HtmlPanel
        • HtmlPanelElementClickArgs
        • HtmlPanelElementClickHandler
      • IFramePanel
      • ImageList
        • ImageList.ImageCollection
        • ImageListEntry
      • Label
      • Line
      • LinkLabel
        • LinkArea
        • LinkLabelLinkClickedEventArgs
        • LinkLabelLinkClickedEventHandler
      • PdfViewer
        • PdfViewerType
      • PictureBox
      • ProgressBar
      • ScrollBar
        • HScrollBar
        • HScrollProperties
        • ScrollEventArgs
        • ScrollEventHandler
        • ScrollProperties
        • VScrollBar
        • VScrollProperties
      • Shape
        • Shape.Border
      • Spacer
      • Upload
        • CaptureMode
        • UploadedEventArgs
        • UploadedEventHandler
        • UploadErrorEventArgs
        • UploadErrorEventHandler
        • UploadErrorType
        • UploadingEventArgs
        • UploadingEventHandler
        • UploadProgressEventArgs
        • UploadProgressEventHandler
      • WebBrowser
        • WebBrowserDocumentCompletedEventArgs
        • WebBrowserDocumentCompletedEventHandler
      • Widget
        • WebRequestEventArgs
        • WebRequestHandler
    • Data Binding
      • Binding
      • BindingCompleteContext
      • BindingCompleteEventArgs
      • BindingCompleteEventHandler
      • BindingCompleteState
      • BindingContext
      • BindingManagerBase
      • BindingManagerDataErrorEventArgs
      • BindingManagerDataErrorEventHandler
      • BindingMemberInfo
      • BindingNavigator
      • BindingsCollection
      • BindingSource
      • Command
      • Command<T>
      • CommandArgs
      • CommandArgs<T>
      • CommandManager
      • ControlBindingsCollection
      • ControlUpdateMode
      • ConvertEventArgs
      • ConvertEventHandler
      • CurrencyManager
      • DataSourceUpdateMode
      • IBindableComponent
      • IBinding
      • ICurrencyManagerProvider
      • ItemChangedEventArgs
      • ItemChangedEventHandler
      • ListBindingHelper
      • PropertyManager
    • Editors
      • CharacterCasing
      • ComponentTool
      • ComponentToolCollection
      • DateTimePicker
      • DomainUpDown
        • DomainUpDown.DomainUpDownItemCollection
      • InputType
      • LabelWrapper
      • MaskedTextBox
        • TypeValidationEventArgs
        • TypeValidationEventHandler
      • MonthCalendar
        • DateRangeEventArgs
        • DateRangeEventHandler
        • SelectionRange
      • NumericUpDown
      • TagTextBox
        • TagTextBoxEventArgs
        • TagTextBoxEventHandler
        • TagTextBoxMousEventArgs
        • TagTextBoxMousEventHandler
        • TagTextBoxRenderEventArgs
        • TagTextBoxRenderEventHandler
      • TextBox
      • TextBoxBase
      • TextBoxMode
      • TextBoxType
      • TimeUpDown
        • TimeUpDownFormat
      • ToolClickEventArgs
      • ToolClickEventHandler
      • TrackBar
      • TypedTextBox
      • UpDownBase
    • Enumerations
      • AccessibleRole
      • AnchorStyles
      • Appearance
      • AutoComplete
      • AutoCompleteMode
      • AutoScaleMode
      • AutoSizeMode
      • AutoValidate
      • BorderStyle
      • BoundsSpecified
      • CheckState
      • ColorDepth
      • ComboBoxStyle
      • ControlStyles
      • DataFormats
      • DataFormats.Format
      • DateTimePickerFormat
      • Day
      • DialogResult
      • Display
      • DockStyle
      • DragAction
      • DragDropEffects
      • GetChildAtPointSkip
      • HeaderPosition
      • HorizontalAlignment
      • ImageLayout
      • ImagePosition
      • ImeMode
      • Keys
      • LabelPosition
      • LeftRightAlignment
      • LineStyle
      • LinkBehavior
      • MaskFormat
      • MouseButtons
      • ObjectFit
      • Orientation
      • PanelAutoShowMode
      • PictureBoxSizeMode
      • Placement
      • PlacementMode
      • Position
      • ProgressBarStyle
      • RightToLeft
      • ScrollBars
      • ScrollEventType
      • ScrollOrientation
      • SelectionMode
      • Shortcut
      • SizeType
      • SortOrder
      • TabOrderManagerDirection
      • TextDataFormat
      • TextImageRelation
      • TickStyle
      • ValidationConstraints
      • VerticalAlignment
    • Extenders
      • Animation
        • Animation.Properties
        • AnimationEventArgs
        • AnimationEventHandler
        • AnimationTiming
      • ErrorAnimationType
      • ErrorBlinkStyle
      • ErrorIconAlignment
      • ErrorProvider
        • ErrorProviderErrorChangedEventArgs
        • ErrorProviderErrorChangedHandler
      • HelpTip
      • JavaScript
        • JavaScript.ClientEvent
        • JavaScript.ClientEventCollection
      • Rotation
        • Rotation.Properties
      • StyleSheet
      • TabOrderManager
      • ToolTip
      • ToolTipIcon
      • Validation
        • CurrencyValidationRule
        • DecimalValidationRule
        • EmailValidationRule
        • IntegerValidationRule
        • RegexValidationRule
        • RequiredValidationRule
        • TelephoneValidationRule
        • ValidationEventArgs
        • ValidationEventHandler
        • ValidationRule
    • Interfaces
      • IButtonControl
      • ICommand
      • ICommandSource
      • IContainerControl
      • IDataObject
      • IDropTarget
      • IErrorProvider
      • IImage
      • ILabel
      • IModified
      • IReadOnly
      • IUserData
      • IValidation
    • Lists & Grids
      • CheckedListBox
        • CheckedListBox.CheckedIndexCollection
        • CheckedListBox.CheckedObjectCollection
        • CheckedListBox.ObjectCollection
        • ItemCheckEventArgs
        • ItemCheckEventHandler
      • ComboBox
        • ComboBox.ObjectCollection
      • DataGridView
        • BaseCollection
        • DataGridView.CustomSummary
        • DataGridView.HitTestInfo
        • DataGridView.HitTestType
        • DataGridViewAutoSizeColumnMode
        • DataGridViewAutoSizeColumnsMode
        • DataGridViewAutoSizeRowMode
        • DataGridViewAutoSizeRowsMode
        • DataGridViewBand
        • DataGridViewBindingCompleteEventArgs
        • DataGridViewBindingCompleteEventHandler
        • DataGridViewButtonCell
        • DataGridViewButtonColumn
        • DataGridViewCell
        • DataGridViewCellBorderStyle
        • DataGridViewCellCancelEventArgs
        • DataGridViewCellCancelEventHandler
        • DataGridViewCellCollection
        • DataGridViewCellCommandEventArgs
        • DataGridViewCellCommandEventHandler
        • DataGridViewCellContextMenuNeededEventArgs
        • DataGridViewCellContextMenuNeededEventHandler
        • DataGridViewCellErrorTextNeededEventArgs
        • DataGridViewCellErrorTextNeededEventHandler
        • DataGridViewCellEventArgs
        • DataGridViewCellEventHandler
        • DataGridViewCellFormattingEventArgs
        • DataGridViewCellFormattingEventHandler
        • DataGridViewCellMouseEventArgs
        • DataGridViewCellMouseEventHandler
        • DataGridViewCellPaintEventArgs
        • DataGridViewCellPaintEventHandler
        • DataGridViewCellParsingEventArgs
        • DataGridViewCellParsingEventHandler
        • DataGridViewCellStateChangedEventArgs
        • DataGridViewCellStateChangedEventHandler
        • DataGridViewCellStyle
        • DataGridViewCellStyleContentChangedEventArgs
        • DataGridViewCellStyleContentChangedEventHandler
        • DataGridViewCellStyleScopes
        • DataGridViewCellToolTipTextNeededEventArgs
        • DataGridViewCellToolTipTextNeededEventHandler
        • DataGridViewCellValidatingEventArgs
        • DataGridViewCellValidatingEventHandler
        • DataGridViewCellValueEventArgs
        • DataGridViewCellValueEventHandler
        • DataGridViewCheckBoxCell
        • DataGridViewCheckBoxColumn
        • DataGridViewChildRowCollection
        • DataGridViewClipboardCopyMode
        • DataGridViewCollectionChangeEventArgs
        • DataGridViewColumn
        • DataGridViewColumnCollection
        • DataGridViewColumnEventArgs
        • DataGridViewColumnEventHandler
        • DataGridViewColumnHeaderCell
        • DataGridViewColumnHeadersHeightSizeMode
        • DataGridViewColumnSortMode
        • DataGridViewColumnsSortMode
        • DataGridViewColumnStateChangedEventArgs
        • DataGridViewColumnStateChangedEventHandler
        • DataGridViewComboBoxCell
        • DataGridViewComboBoxCell.ObjectCollection
        • DataGridViewComboBoxColumn
        • DataGridViewComboBoxEditingControl
        • DataGridViewContentAlignment
        • DataGridViewDataErrorEventArgs
        • DataGridViewDataErrorEventHandler
        • DataGridViewDataReadEventArgs
        • DataGridViewDataReadEventHandler
        • DataGridViewDataUpdatedEventArgs
        • DataGridViewDataUpdatedEventHandler
        • DataGridViewDateTimePickerCell
        • DataGridViewDateTimePickerColumn
        • DataGridViewDateTimePickerEditingControl
        • DataGridViewEditingControlShowingEventArgs
        • DataGridViewEditingControlShowingEventHandler
        • DataGridViewEditMode
        • DataGridViewElement
        • DataGridViewElementStates
        • DataGridViewHeaderCell
        • DataGridViewImageCell
        • DataGridViewImageCellLayout
        • DataGridViewImageColumn
        • DataGridViewLinkCell
        • DataGridViewLinkColumn
        • DataGridViewMaskedTextBoxCell
        • DataGridViewMaskedTextBoxColumn
        • DataGridViewMaskedTextBoxEditingControl
        • DataGridViewNumericUpDownCell
        • DataGridViewNumericUpDownColumn
        • DataGridViewNumericUpDownEditingControl
        • DataGridViewRow
        • DataGridViewRowCancelEventArgs
        • DataGridViewRowCancelEventHandler
        • DataGridViewRowCollection
        • DataGridViewRowErrorTextNeededEventArgs
        • DataGridViewRowErrorTextNeededEventHandler
        • DataGridViewRowEventArgs
        • DataGridViewRowEventHandler
        • DataGridViewRowHeaderCell
        • DataGridViewRowHeadersWidthSizeMode
        • DataGridViewRowHeightInfoNeededEventArgs
        • DataGridViewRowHeightInfoNeededEventHandler
        • DataGridViewRowsAddedEventArgs
        • DataGridViewRowsAddedEventHandler
        • DataGridViewRowsRemovedEventArgs
        • DataGridViewRowsRemovedEventHandler
        • DataGridViewRowStateChangedEventArgs
        • DataGridViewRowStateChangedEventHandler
        • DataGridViewSelectedCellCollection
        • DataGridViewSelectedColumnCollection
        • DataGridViewSelectedRowCollection
        • DataGridViewSelectionMode
        • DataGridViewSortCompareEventArgs
        • DataGridViewSortCompareEventHandler
        • DataGridViewSortSelectionMode
        • DataGridViewSummaryRow
        • DataGridViewTextBoxCell
        • DataGridViewTextBoxColumn
        • DataGridViewTextBoxEditingControl
        • DataGridViewToolClickEventArgs
        • DataGridViewToolClickEventHandler
        • DataGridViewTriState
        • IDataGridViewEditingControl
        • InputType
        • ScrollEventArgs
        • ScrollEventHandler
        • SummaryRowPosition
        • SummaryType
        • TextBoxMode
        • TextBoxType
      • ListBox
        • ListBox.ObjectCollection
        • ListBox.SelectedIndexCollection
        • ListBox.SelectedObjectCollection
      • ListControl
        • ListControlConvertEventArgs
        • ListControlConvertEventHandler
      • ListView
        • CacheVirtualItemsEventArgs
        • CacheVirtualItemsEventHandler
        • ColumnClickEventArgs
        • ColumnClickEventHandler
        • ColumnHeader
        • ColumnHeaderAutoResizeStyle
        • ColumnHeaderStyle
        • ColumnReorderedEventArgs
        • ColumnReorderedEventHandler
        • ColumnWidthChangedEventArgs
        • ColumnWidthChangedEventHandler
        • GridLineStyle
        • ImageColumnHeader
        • ItemCheckedEventArgs
        • ItemCheckedEventHandler
        • ItemClickEventArgs
        • ItemClickEventHandler
        • ItemMouseHoverEventArgs
        • ItemMouseHoverEventHandler
        • ItemSelectionChangedEventArgs
        • ItemSelectionChangedEventHandler
        • LabelEditEventArgs
        • LabelEditEventHandler
        • ListView.CheckedIndexCollection
        • ListView.CheckedListViewItemCollection
        • ListView.ColumnHeaderCollection
        • ListView.ListViewItemCollection
        • ListView.SelectedIndexCollection
        • ListView.SelectedListViewItemCollection
        • ListViewBindingCompleteEventArgs
        • ListViewBindingCompleteEventEventHandler
        • ListViewDataUpdatedEventArgs
        • ListViewDataUpdatedEventHandler
        • ListViewItem
        • ListViewItem.ListViewSubItem
        • ListViewItem.ListViewSubItemCollection
        • ListViewItemDragEventArgs
        • ListViewItemDragEventHandler
        • ListViewItemStates
        • ListViewVirtualItemsSelectionRangeChangedEventArgs
        • ListViewVirtualItemsSelectionRangeChangedEventHandler
        • RetrieveVirtualItemEventArgs
        • RetrieveVirtualItemEventHandler
        • SearchForVirtualItemEventArgs
        • SearchForVirtualItemEventHandler
        • View
      • ListViewComboBox
      • PropertyGrid
        • GridItem
        • GridItemCollection
        • GridItemType
        • PropertySort
        • PropertyValueChangedEventArgs
        • PropertyValueChangedEventHandler
        • PropertyValueDataErrorEventArgs
        • PropertyValueDataErrorEventHandler
        • PropertyValueFormattingEventArgs
        • PropertyValueFormattingEventHandler
        • SelectedGridItemBeginEditEventArgs
        • SelectedGridItemBeginEditEventHandler
        • SelectedGridItemChangedEventArgs
        • SelectedGridItemChangedEventHandler
        • SelectedGridItemEndEditEventArgs
        • SelectedGridItemEndEditEventHandler
      • TreeView
        • ItemDragEventArgs
        • ItemDragEventHandler
        • NodeLabelEditEventArgs
        • NodeLabelEditEventHandler
        • TreeNode
        • TreeNodeCollection
        • TreeNodeMouseClickEventArgs
        • TreeNodeMouseClickEventHandler
        • TreeNodeMouseHoverEventArgs
        • TreeNodeMouseHoverEventHandler
        • TreeViewAction
        • TreeViewCancelEventArgs
        • TreeViewCancelEventHandler
        • TreeViewEventArgs
        • TreeViewEventHandler
        • TreeViewNodeDragEventArgs
        • TreeViewNodeDragEventHandler
      • TreeViewComboBox
      • UserComboBox
    • Menus
      • CheckedMenuItem
      • ContextMenu
      • LinkMenuItem
      • MainMenu
      • Menu
      • Menu.MenuItemCollection
      • MenuBar
      • MenuItem
      • MenuItemEventArgs
      • MenuItemEventHandler
      • MenuItemSizeMode
      • MenuMerge
    • Notifications
      • AlertBox
        • MessageBoxIcon
      • MessageBox
        • MessageBoxButtons
        • MessageBoxDefaultButton
        • MessageBoxIcon
      • Toast
    • Other Components
      • Timer
  • Wisej.Base
    • General
      • Component
      • Cookie
        • Cookie.SameSiteMode
      • CookieCollection
      • PostbackPropertyAttribute
      • TextUtils
    • Responsive
      • ResponsiveProfile
      • ResponsiveProfileCollection
      • ResponsivePropertyAttribute
  • Wisej.Core
    • General
      • BrowserStorage
      • CookieStorage
      • DynamicObject
      • FileSystemProvider
      • HealthCheck
      • HttpContext
      • HttpCookie
        • SameSiteMode
      • HttpCookieCollection
      • HttpFileCollection
      • HttpPostedFile
      • HttpRequest
      • HttpResponse
      • IEventFilter
      • IFileSystemProvider
      • LocalStorage
      • MimeTypes
      • SessionStorage
      • SynchronizedList<T>
      • WebMethodAttribute
      • WisejEventArgs
        • WisejEventArgs.KeyboardInfo
        • WisejEventArgs.PointerInfo
      • WisejResourcesAttribute
      • WisejSerializer
      • WisejSerializerOptions
      • WisejSerializerOptionsAttribute
    • Interfaces
      • IWisejComponent
      • IWisejControl
      • IWisejDataStore
      • IWisejEditorService
      • IWisejExtenderProvider
      • IWisejHandler
      • IWisejSerializable
      • IWisejWindow
  • Wisej.Web.Markup
    • Extensions
      • BindingExtensions
      • ButtonExtensions
      • CheckedListBoxExtensions
      • ComboBoxExtensions
      • ControlExtensions
      • DateTimePickerExtensions
      • FlexLayoutPanelExtensions
      • FlowLayoutPanelExtensions
      • FormExtensions
      • GroupBoxExtensions
      • IButtonControlExtensions
      • ICommandSourceExtensions
      • IErrorProviderExtensions
      • IImageExtensions
      • ILabelExtensions
      • IModifiedExtensions
      • IReadOnlyExtensions
      • LabelExtensions
      • LineExtensions
      • LinkLabelExtensions
      • ListBoxExtensions
      • ListControlExtensions
      • MonthCalendarExtenestions
      • NumericUpDownExtensions
      • PageExtensions
      • PanelExtensions
      • PictureBoxExtensions
      • ProgressBarExtensions
      • RadioButtonExtensions
      • ScrollableControlExtensions
      • ScrollBarExtensions
      • ShapeExtensions
      • SplitterControlExtensions
      • StatusBarExtensions
      • TabControlExtensions
      • TableLayoutPanelExtensions
      • TabPageExtensions
      • TextBoxExtensions
      • TimerExtensions
      • TimeUpDownExtensions
      • ToolBarButtonExtensions
      • ToolBarExtensions
      • TrackBarExtensions
      • TreeNodeExtensions
      • TreeViewExtensions
      • UpDownControlExtensions
      • WebBrowserExtensions
  • Wisej.Web.VisualBasic
    • Extensions
      • Interaction
      • MsgBoxResult
      • MsgBoxStyle
  • Wisej.Services
    • General
      • InjectAttribute
      • ServiceLifetime
      • ServiceProvider
  • System
    • Extensions
      • DateTimeExtensions
      • FontExtensions
      • JSON
      • Markdown
      • StringExtensions
  • Wisej.Resources
    • Resources
      • ComponentResourceManager
      • ResourceManager
Powered by GitBook
On this page
  • Constructors
  • Widget()
  • Properties
  • BorderStyle
  • DefaultSize
  • EnableNativeContextMenu
  • InitScript
  • Instance
  • IsLoaded
  • Options
  • Packages
  • WiredEvents
  • Methods
  • AddListener(eventName, handler, expression)
  • GetResourceString(name)
  • GetResourceString(assembly, name)
  • GetResourceURL(name)
  • GetResourceURL(assembly, name)
  • OnLoad(e)
  • OnWebEvent(e)
  • OnWebRender(config)
  • OnWebRequest(e)
  • RemoveListener(eventName, handler)
  • Events
  • Load
  • WebRequest
  • Implements

Was this helpful?

Export as PDF
  1. Wisej.Web
  2. Content

Widget

Wisej.Web.Widget

Last updated 2 months ago

Was this helpful?

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Provides a generic widget that can use most third party javascript widgets.

public class Widget : Control, IWisejHandler
Public Class Widget
    Inherits Control
    Implements IWisejHandler

See the property for a detailed description on how to initialize the imported widget.

Constructors

Widget()

Initializes a new instance of the class.

Properties

BorderStyle

: Indicates the border style for the control. (Default: None)

DefaultSize

The initialization script is called after the widget is created and before it is rendered by the browser. It is here that the code should initialize the third party widget, hook up any event, and save any reference it may need. The initialization function is named "init" and must be declared like this:


this.init = function(options)
{
  // simple example on how to initialize
  // an hypothetical widget.
  
  $(this.container).widget(options);
  
  // alternative example on how to
  // initialize a widget that needs a specific
  // child element.
  this.container.innerHTML = "<select id='widget'></select>
  $('#widget').widget(options);
}

The update function is named "update", it is optional, and must be declared like this:


this.update = function(options, old)
{
  // update the widget either using the
  // changed options or by invoking specific methods.
  $('#widget').widget(options);
}

  this.init = function(options)
  {
    // add the onSelect handler to the initialization options
    // to relay the client event back to the server side
    // representation of the widget.
    //
    // The e.getId() and e.getText() are just examples, the values
    // to send back to the server depend on the third party widget
    // and the event specification.
  
    var me = this;
    options.onSelect = function(e) {
        me.fireWidgetEvent("select", {id:e.getId(), text:e.getText()});
  };

    $(this.container).widget(options);
  }


  // invokes the setLineColor(color) JavaScript method
  // on the third party chart widget.
  this.chart1.Instance.setLineColor("red");
  
  // to get a return value you can add either a callback function or
  // use the Async version and await the result.
  this.chart1.Instance.getSeriesCount((count) => { AlertBox.Show(count.ToString()); });
  
  // all methods have the Async version registered automatically.
  var count = await this.chart1.Instance.getSeriesCountAsync();
  AlertBox.Show(count.ToString());
  


  // listens to the "zoomChange" event fired by the widget.
  this.chart1.Instance.onZoomChange += new WidgetEventHandler(this.chart1_OnZoomChange);
  
  ...
  
  private void chart1_OnZoomChange(object sender, WidgetEventArgs e) {
  }
  


  this.widget.Options.value = 10;
  // no need to notify, value is a first level field.

  this.widget.Options.toolbar.show = true;
  // need to notify, show is a field of toolbar.
  this.widget.Update();
  // or
  this.widget.Options.Notify("toolbar.show");

  this.widget.Options.toolbar = new { show = true };
  // no need to notify, we are setting toolbar.show but the assignment
  // changes toolbar which is a first level field.



  this.chart1.WiredEvents = new [] {"AreaClick"};

  this.chart1.Instance.areaClick += new WidgetEventHandler(chart1_AreaClick);
  
  private void chart1_AreaClick(object sender, WidgetEventArgs e) {

    // event data is available at e.Data as a dynamic object.
    var data = e.Data;
    var x = data.x;
    var y = data.y;
    var name = data.name;
    AlertBox.Show($"Clicked area {name} at {x}, {y}.");

  }

For the sample code above to receive the "areaClick" event you have to handle the third party widget event and fire a Wisej event. The syntax for the handler registration depends on each wrapped third party widget: some may use native events, other may use third party libraries, and others may use callback methods.



  var me = this;
  this.widget.addEventHandler("areaClick", function(e){
    me.fireWidgetEvent("AreaClick", {name:a.areaName, x:e.xPos, y:e.yPos});
  });


  
  this._addListener = function(name, handler) {
    this.widget.on(name, handler);
  }
  
  this._removeListener = function(name, handler) {
    this.widget.off(name, handler);
  }

  this._getEventData = function(type, e, expression) {
    if (type === "cellClick") {
      return {row:e.rowIndex, column:e.colIndex};
    }
  }
  

Methods

Registers the event handler to listen to the event eventName fired by the third party widget.

Parameter
Type
Description

eventName

Name of the event fired by the third party widget.

handler

Function that handles the event on the server side.

Optional expression to process the event data: i.e. "{x:e.x, y:x.y}".

VB.NET muse use this method to attach an event handler to the widget's events.


  
  Widget1.AddListener "zoomChanged", AddressOf Widget1_OnZoomChanged
  
  Private Sub Widget1_OnZoomChanged(sender As Object, e As WidgetEventArgs)
  End Sub
  

Throws:

Returns the content of the embedded resource.

Parameter
Type
Description

name

The fully qualified name of the embedded resource..

Returns the content of the embedded resource.

Parameter
Type
Description

assembly

Assembly with the embedded resource.

name

The fully qualified name of the embedded resource..

Returns the URL to pass to the wisej loader to load the specified embedded resource.

Parameter
Type
Description

name

The fully qualified name of the embedded resource.

Returns the URL to pass to the wisej loader to load the specified embedded resource.

Parameter
Type
Description

assembly

Assembly with the embedded resource.

name

The fully qualified name of the embedded resource.

Parameter
Type
Description

e

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

Parameter
Type
Description

e

Removes the event handler for the eventName fired by the third party widget.

Parameter
Type
Description

eventName

Name of the event fired by the third party widget.

handler

Function that handles the event on the server side.

Throws:

Events

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

All wisej components implement this interface.

Represents a Wisej component that is capable of handling postback requests from the client.

Allows an object to serialize itself.

: The default of the control.

EnableNativeContextMenu

: Enables or disables the browser's context menu. (Default: False)

InitScript

: Returns or sets the initialization script.

The "options" parameter is optional. It contains a javascript map with all the options defined in the property. Within the init function you can refer to the Wisej widget class using "this" and to the HTML element using "this.container". To fire an event back to the server, use "this.fireWidgetEvent() as show in the sample code below:

On the server side, you can handle the and receive any data passed in the "fireWidgetEvent" call in the dynamic object.

Instance

: Returns a that can convert any method call into the equivalent JavaScript call targeting the third party "widget" object.

An application can invoke any method on the wrapped third party widget by using the property. Dynamic method calls are automatically transformed to JavaScript client calls.

C# can also attach to client side events fired by the third party widget by simply adding an handler to the event name prefixed by "on". VB.NET cannot attach to dynamic events and must insted use the method to attach an event listener to an event fired by the widget.

IsLoaded

: Returns whether the JavaScript widget has been initialized.

Options

: Returns or sets a dynamic object that is passed to the init(options) function upon initialization of the widget and to the update(options, old) when updating the widget.

The class automatically detects changes to first level fields only. If your code changes a nested object you have to either call or notify the object that a property has changed like this:

Packages

: List of packages required to run this widget.

Each package is a URL to either a JavaScript or a CSS file. The packages are loaded in the order they are listed. If a script depends on another script, it should be declared after the script it depends on, i.e.: Query usually if the first script in the package list. Wisej.NET uses the name of the package to cache it and load it only once. It's important that you use consistent names when creating multiple widgets in order to load the shared packages only once. You can preload the packages using with the list of the packages and corresponding names to preload.

WiredEvents

: Returns or sets the list of events that are fired by the widget wrapper.

Defines the list of events that the widget wrapper can fire. You have to add the code that handles the third party widget's events and fire a server event back to this widget wrapper. If your initialization code fires the event correctly and the event is registered in the list, the application code can attach a listener to the dynamic object like any native event.

The list of the wired events that the server component expects to receive is available on the client side wrapper using the events array: this.getEvents(). Since 2.5.31 You can attach to the event without having to register it with the collection when you prefix the handler with "on". i.e. this.Instance.onPointClick += new WidgetEventHandler(onPointClick). Wisej will try to attach to the "pointClick" event automatically removing the "on" prefix. When you attach the listener Wisej will automatically add it to the collection. Additionally, instead of having to iterate the this.getEvents() collection in the widget's initScript, you can override "_addListener", "_removeListener", "_getEventData".

AddListener(eventName, handler, expression)

expression

eventName or handler is null.

GetResourceString(name)

Returns: .

GetResourceString(assembly, name)

Returns: .

GetResourceURL(name)

Returns: .

GetResourceURL(assembly, name)

Returns: .

OnLoad(e)

Raises the event.

A that contains the event data.

OnWebEvent(e)

OnWebRender(config)

OnWebRequest(e)

Fires the event.

A that contains the event data.

RemoveListener(eventName, handler)

eventName or handler is null.

Load

Fired when the widget is created on the client.

WebRequest

Fired when the widget used the "postbackUrl" to retrieve data from this control.

All wisej controls derived from the class must implement this interface.

Size
Size
Boolean
String
Object
DynamicObject
Boolean
Object
List<Package>
String[]
ArgumentNullException
String
String
String
String
ArgumentNullException
EventHandler
WebRequestHandler
Options
Instance
AddListener
WiredEvents
Instance
WiredEvents
WiredEvents
Load
WebRequest
String
WidgetEventHandler
String
String
Assembly
String
String
Assembly
String
EventArgs
EventArgs
WisejEventArgs
Object
WebRequestEventArgs
WebRequestEventArgs
String
WidgetEventHandler
IUserData
IBindableComponent
IDropTarget
IWisejComponent
IWisejControl
Control
IWisejHandler
IWisejSerializable
Control
Widget
Widget
BorderStyle
InitScript
Widget
Options
Data
LoadPackages
WidgetEvent
Update