Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Collapse]DevExpress.Web.Mvc.UI
   [Collapse]ExtensionsFactory Class
     ExtensionsFactory Members
    [Expand]ExtensionsFactory Properties
    [Collapse]ExtensionsFactory Methods
     [Expand]AppointmentRecurrenceForm Method
     [Expand]BinaryImage Method
     [Expand]Button Method
     [Expand]ButtonEdit Method
     [Expand]Calendar Method
     [Expand]CallbackPanel Method
     [Expand]Captcha Method
     [Expand]CardView Method
     [Expand]CardView<CardType> Method
     [Expand]Chart Method
     [Expand]CheckBox Method
     [Expand]CheckBoxList Method
     [Expand]ColorEdit Method
     [Expand]ComboBox Method
     [Expand]DataView Method
     [Expand]DateEdit Method
     [Expand]DateNavigator Method
     [Expand]DockManager Method
     [Expand]DockPanel Method
     [Expand]DockZone Method
     [Expand]DocumentViewer Method
     [Expand]DropDownEdit Method
     [Expand]FileManager Method
      GetScripts Method
     [Expand]GetStyleSheets Method
     [Expand]GridLookup Method
     [Expand]GridView Method
     [Expand]GridView<RowType> Method
     [Expand]Hint Method
     [Expand]HtmlEditor Method
     [Expand]HyperLink Method
     [Expand]Image Method
     [Expand]ImageGallery Method
     [Expand]ImageSlider Method
     [Expand]ImageZoom Method
     [Expand]ImageZoomNavigator Method
     [Expand]Label Method
     [Expand]ListBox Method
     [Expand]LoadingPanel Method
     [Expand]Memo Method
     [Expand]Menu Method
     [Expand]NavBar Method
     [Expand]PageControl Method
     [Expand]Panel Method
     [Expand]PivotCustomizationExtension Method
     [Expand]PivotGrid Method
     [Expand]PopupControl Method
     [Expand]PopupMenu Method
     [Expand]ProgressBar Method
     [Expand]RadioButton Method
     [Expand]RadioButtonList Method
     [Expand]RatingControl Method
      RenderScripts Method
     [Expand]RenderStyleSheets Method
     [Expand]ReportDesigner Method
     [Expand]ReportToolbar Method
     [Expand]ReportViewer Method
     [Expand]Ribbon Method
     [Expand]RichEdit Method
     [Expand]RoundPanel Method
     [Expand]Scheduler Method
     [Expand]SchedulerStatusInfo Method
     [Expand]SpellChecker Method
     [Expand]SpinEdit Method
     [Expand]Splitter Method
     [Expand]Spreadsheet Method
     [Expand]TabControl Method
     [Expand]TextBox Method
     [Expand]TimeEdit Method
     [Expand]TimeZoneEdit Method
     [Expand]TokenBox Method
     [Expand]TrackBar Method
     [Expand]TreeList Method
     [Expand]TreeList<RowType> Method
     [Expand]TreeView Method
     [Expand]UploadControl Method
     [Expand]ValidationSummary Method
     [Expand]VerticalGrid Method
     [Expand]VerticalGrid<ColumnType> Method
     [Expand]WebDocumentViewer Method
   [Expand]ExtensionsFactory<ModelType> Class
    ExtensionSuite Enumeration
    ExtensionType Enumeration
   [Expand]HtmlHelperExtension Class
   [Expand]ResourceItem Class
   [Expand]Script Class
   [Expand]StyleSheet Class
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ExtensionsFactory.GetScripts Method

Returns the HTML code representing the rendering of the specified scripts.

Namespace:DevExpress.Web.Mvc.UI
Assembly:DevExpress.Web.Mvc.v17.2.dll

Expanded Syntax

Parameters

scriptItems
Type: Script[]
An array of Script objects defining the attached scripts.

Return value

Type: MvcHtmlString
A System.Web.Mvc.MvcHtmlString object representing the HTML-encoded string.

Expanded Remarks

Use the GetScripts method to attach the scripts required for the DevExpress ASP.NET MVC extensions.

If the "resources" section of an application's Web.config file contains a reference to the "ThirdParty" and/or "DevExtreme" libraries, the GetScripts method will attach the corresponding libraries and additional resources to the View.

For more information about this configuration option and a complete list of the scripts attached to each extension suite, see Embedding Third-Party Libraries.

Expanded Example

The following example demonstrates how to attach the DevExpress MVC Extensions' scripts to the View.

Expanded See Also

How would you rate this topic?​​​​​​​