FileManagerBuilder
Methods
UploadUrl(System.String,System.String,System.Web.Routing.RouteValueDictionary)
Sets the action, controller and route values for the upload operation
Parameters
actionName - System.String
Name of the action.
controllerName - System.String
Name of the controller.
routeValues - System.Web.Routing.RouteValueDictionary
The route values.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager", new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)
UploadUrl(System.String,System.String,System.Object)
Sets the action, controller and route values for the upload operation
Parameters
actionName - System.String
Name of the action.
controllerName - System.String
Name of the controller.
routeValues - System.Object
The route values.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager", new {id = 1})
)
UploadUrl(System.String,System.String)
Sets the action and controller for the upload operation
Parameters
actionName - System.String
Name of the action.
controllerName - System.String
Name of the controller.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("FileManagerUpload", "FileManager")
)
UploadUrl(System.Web.Routing.RouteValueDictionary)
Sets the route values for the upload operation
Parameters
routeValues - System.Web.Routing.RouteValueDictionary
The route values of the action method.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl(new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)
UploadUrl(System.String,System.Web.Routing.RouteValueDictionary)
Sets the route and values for the upload operation
Parameters
routeName - System.String
Name of the route.
routeValues - System.Web.Routing.RouteValueDictionary
The route values.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("/Home", new RouteValueDictionary { { "locale", "en-US" }, { "year", DateTime.Now.Year.ToString() } })
)
UploadUrl(System.String,System.Object)
Sets the route and values for the upload operation
Parameters
routeName - System.String
Name of the route.
routeValues - System.Object
The route values.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.UploadUrl("/Home", new object { id = 1})
)
UploadUrl(System.Linq.Expressions.Expression)
Parameters
controllerAction - System.Linq.Expressions.Expression<Action>
DataSource(System.Action)
Configure the DataSource of the component
Parameters
configurator - System.Action<FileManagerDataSourceBuilder>
The action that configures the DataSource.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read(operation => operation
.Type(HttpVerbs.Post)
.Action("Read", "FileManagerData")
);
})
)
DataSource(System.String)
Sets the data source configuration of the DataSource.
Parameters
dataSourceId - System.String
The unique identifier of the DataSource
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource("myDataSource")
)
Width(System.Double)
Configures the width of the FileManager.
Parameters
value - System.Double
The value that configures the width.
Height(System.Double)
Configures the height of the FileManager.
Parameters
value - System.Double
The value that configures the height.
InitialView(System.String)
Configures the initial view of the FileManager.
Parameters
value - System.String
The value that configures the initialview.
Resizable(System.Boolean)
Configures the resizable features of the FileManager.
Parameters
value - System.Boolean
The value that configures the resizable.
Draggable(System.Boolean)
Enables or disables the drag and drop features of the FileManager.
Parameters
value - System.Boolean
The value that configures the draggable.
UploadUrl(System.String)
Sets the upload url for the Upload widget.
Parameters
value - System.String
The value that configures the uploadurl.
Upload(System.Action)
Configures the composite Upload widget of the FileManager. Accepts the same options as the kendoUpload widget.
Parameters
configurator - System.Action<FileManagerUploadSettingsBuilder>
The action that configures the upload.
Toolbar(System.Boolean)
Configures the Toolbar of the FileManager
Parameters
enabled - System.Boolean
Enables or disables the toolbar option.
Toolbar(System.Action)
Configures the Toolbar of the FileManager
Parameters
configurator - System.Action<FileManagerToolbarSettingsBuilder>
The action that configures the toolbar.
Dialogs(System.Action)
Specifies the composite Dialog widgets of the FileManager.
Parameters
configurator - System.Action<FileManagerDialogsSettingsBuilder>
The action that configures the dialogs.
ContextMenu(System.Boolean)
Configures the ContextMenu of the FileManager.
Parameters
enabled - System.Boolean
Enables or disables the contextmenu option.
ContextMenu(System.Action)
Configures the ContextMenu of the FileManager.
Parameters
configurator - System.Action<FileManagerContextMenuSettingsBuilder>
The action that configures the contextmenu.
Views(System.Action)
Configures every view registered for the FileManager.
Parameters
configurator - System.Action<FileManagerViewsSettingsBuilder>
The action that configures the views.
PreviewPane(System.Action)
Configures the Preview Pane of the FileManager.
Parameters
configurator - System.Action<FileManagerPreviewPaneSettingsBuilder>
The action that configures the previewpane.
Breadcrumb(System.Boolean)
Configures or disables the Breadcrumb component.
Parameters
enabled - System.Boolean
Enables or disables the breadcrumb option.
Breadcrumb(System.Action)
Configures or disables the Breadcrumb component.
Parameters
configurator - System.Action<FileManagerBreadcrumbSettingsBuilder>
The action that configures the breadcrumb.
Messages(System.Action)
Defines the text of the localizable UI parts of the FileManager.
Parameters
configurator - System.Action<FileManagerMessagesSettingsBuilder>
The action that configures the messages.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<FileManagerEventBuilder>
The client events action.
Example
@( Html.Kendo().FileManager()
.Name("FileManager")
.Events(events => events
.Navigate("onNavigate")
)
)
ToComponent()
Returns the internal view component.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name of the component.
Example
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
ModelMetadata(System.Web.Mvc.ModelMetadata)
Uses the Metadata of the Model.
Parameters
modelMetadata - System.Web.Mvc.ModelMetadata
The metadata set for the Model
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
Render()
Renders the component.
Example
@(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
@( Html.Kendo().Grid(Model)
.Name("grid")
.DetailTemplate(product => {
)
Product Details:
<div>Product Name: @( product.ProductName )</div>
<div>Units In Stock: @( product.UnitsInStock )</div>
@(
})
.Render();
)
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.