New to Telerik UI for ASP.NET Core? Start a free 30-day trial

WidgetBase member.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public abstract class WidgetBase : IHtmlAttributesContainer

Inheritance: objectWidgetBase

Derived Classes: AIPromptActionSheetAppBarArcGaugeAutoCompleteAvatarBadgeBarcodeBottomNavigationBreadcrumbButtonButtonGroupCalendarCaptchaChainOfThoughtChartBreadcrumbChartWizard<T>Chart<T>ChatCheckBoxCheckBoxGroupCheckpointChipChipListCircularGaugeCircularProgressBarCitationColorGradientColorPaletteColorPickerComboBoxContextMenuDataSourceWidget<T>DateInputDatePickerDateRangePickerDateTimePickerDiagram<TShapeModel, TConnectionModel>DialogDockManagerDrawerDropDownButtonDropDownListDropDownTreeEditorExpansionPanelFileManagerFilter<T>FlatColorPickerFloatingActionButtonFloatingToolBarForm<T>Gantt<TTaskModel, TDependenciesModel>GridLayoutGrid<T>ImageEditorInlineAIPromptLinearGaugeListBoxListView<T>LoaderMapMaskedTextBoxMediaPlayerMenuMultiColumnComboBoxMultiSelectMultiViewCalendarNotificationNumericTextBox<T>OTPInputOrgChart<T>PDFViewerPagerPanelBarPivotConfiguratorPivotConfiguratorButtonPivotConfiguratorV2PivotContainerPivotGridV2<T>PivotGrid<T>PopoverProgressBarPromptBoxPropertyGrid<T>QRCodeRadialGaugeRadioButtonRadioGroupRangeSlider<T>RatingReasoningRecurrenceEditorResponsivePanelSankeyScheduler<T>ScrollViewSegmentedControlSignatureSkeletonContainerSlider<T>SmartPasteButtonSortableSpeechToTextButtonSplitButtonSplitterSpreadsheetStackLayoutStepperSwitchTabStripTaskBoard<TCard, TColumn>TextAreaTextBox<T>TileLayoutTimeDurationPickerTimePickerTimeline<T>ToggleButtonToolBarToolCallTooltipTreeList<T>TreeMapTreeViewUploadWindowWizard...

Implements: IHtmlAttributesContainer

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

WidgetBase method.

C#
public WidgetBase(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Gets the client events of the widget.

C#
public IDictionary<string, object> Events { get; }
Property Value:

The client events.

Gets or sets the Explorer.

C#
public ModelExplorer Explorer { get; set; }
Property Value:

The Explorer.

Generator member.

C#
protected IKendoHtmlGenerator Generator { get; set; }

HasClientComponent member.

C#
public bool HasClientComponent { get; set; }

Gets or sets the HasDeferredInitialization.

C#
public bool HasDeferredInitialization { get; set; }

Gets the HTML attributes of the widget.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }
Property Value:

The HTML attributes.

Implements: IHtmlAttributesContainer.HtmlAttributes

HtmlEncoder member.

C#
public HtmlEncoder HtmlEncoder { get; set; }

HtmlHelper member.

C#
public IHtmlHelper HtmlHelper { get; set; }

Gets the unique ID of the widget

C#
public virtual string Id { get; }
Property Value:

The unique ID of the widget

Gets or sets the IdPrefix.

C#
public string IdPrefix { get; }

Gets or sets the Initializer.

C#
public IJavaScriptInitializer Initializer { get; set; }

Gets or sets the IsInClientTemplate.

C#
public bool IsInClientTemplate { get; }

Gets or sets the IsSelfInitialized.

C#
public bool IsSelfInitialized { get; set; }

Gets or sets the ModelMetadataProvider.

C#
public IModelMetadataProvider ModelMetadataProvider { get; set; }

Gets or sets the name.

C#
public string Name { get; set; }
Property Value:

The name.

SanitezeId member.

C#
public bool SanitezeId { get; set; }

Set the JavaScript attributes to the initialization script.

C#
public IDictionary<string, object> ScriptAttributes { get; set; }

Gets or sets the Selector.

C#
public string Selector { get; }

UrlGenerator member.

C#
public IUrlGenerator UrlGenerator { get; set; }

UseMvvmInitialization member.

C#
public bool UseMvvmInitialization { get; set; }

Gets a reference to the ValueProvider for the current ActionContext

C#
public IValueProvider ValueProvider { get; }

Gets or sets the view context to rendering a view.

C#
public ViewContext ViewContext { get; }
Property Value:

The view context.

Gets or sets the Writer.

C#
public IJavaScriptWriter Writer { get; set; }

Methods

DeferStyles method.

C#
public virtual void DeferStyles()

GetElement method.

C#
protected virtual TagBuilder GetElement()
Returns:

TagBuilder

GetHtml method.

C#
public string GetHtml(bool includeScript = true)
Parameters:includeScriptboolReturns:

string

The result.

GetInitializator method.

C#
public string GetInitializator()
Returns:

string

The result.

GetService{TService} method.

C#
protected TService GetService<TService>()
Returns:

TService

ProcessSettings method.

C#
public virtual void ProcessSettings()

Renders the component.

C#
public void Render()

RenderHtml method.

C#
protected virtual void RenderHtml(TextWriter writer)
Parameters:writerTextWriter

Serialize method.

C#
public virtual IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Serialize manual settings here

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

ToClientTemplate method.

C#
public HtmlString ToClientTemplate()
Returns:

HtmlString

ToHtmlString method.

C#
public string ToHtmlString()
Returns:

string

The result.

VerifySettings method.

C#
public virtual void VerifySettings()

WriteDeferredScriptInitialization method.

C#
public virtual void WriteDeferredScriptInitialization()

Writes the deferred styes.

C#
public virtual void WriteDeferredStyles(TextWriter writer)
Parameters:writerTextWriter

The writer.

Writes the HTML.

C#
protected virtual void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Writes the initialization script.

C#
public abstract void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

WriteLicensingScript method.

C#
protected virtual void WriteLicensingScript(TextWriter writer)
Parameters:writerTextWriter

WriteMvvmHtml method.

C#
protected virtual void WriteMvvmHtml(TextWriter writer)
Parameters:writerTextWriter