FileManagerDataSourceBuilder
Methods
Custom()
Use it to configure Custom binding.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport => transport
.Read("Read", "FileManagerData")
)
})
)
SignalR()
Use it to configure SignalR binding.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource => dataSource
.SignalR()
.Transport(tr => tr
.Promise("hubStart")
.Hub("hub")
.Client(c => c
.Read("read"))
.Server(s => s
.Read("read"))
})
)
Read(System.Action)
Configures the URL for Read operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read(operation => operation
.Type(HttpVerbs.Post)
.Action("Read", "FileManagerData")
);
})
)
Read(System.String,System.String,System.Object)
Sets controller, action and routeValues for Read operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData", new { id = 1 });
})
)
Read(System.String,System.String)
Sets controller and action for Read operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData");
})
)
Create(System.Action)
Configures the URL for Create operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Configures the Create operation for the DataSource.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Create(operation => operation
.Type(HttpVerbs.Post)
.Action("Create", "FileManagerData")
);
})
)
Create(System.String,System.String,System.Object)
Sets controller, action and routeValues for Create operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Create("Create", "FileManagerData", new { id = 1 });
})
)
Create(System.String,System.String)
Sets controller and action for Create operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Create(operation => operation
.Type(HttpVerbs.Post)
.Action("Create", "FileManagerData")
);
})
)
Update(System.Action)
Configures the URL for Update operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Configures the Update operation for the DataSource.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Update(operation => operation
.Type(HttpVerbs.Post)
.Action("Update", "FileManagerData")
);
})
)
Update(System.String,System.String,System.Object)
Sets controller, action and routeValues for Update operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Update("Update", "FileManagerData", new { id = 1 });
})
)
Update(System.String,System.String)
Sets controller and action for Update operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Update("Update", "FileManagerData");
})
)
Destroy(System.Action)
Configures the URL for Destroy operation.
Parameters
configurator - System.Action<CrudOperationBuilder>
Configures the Destroy operations of the DataSource.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Destroy(operation => operation
.Type(HttpVerbs.Post)
.Action("Destroy", "FileManagerData")
);
})
)
Destroy(System.String,System.String,System.Object)
Sets controller, action and routeValues for Destroy operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
routeValues - System.Object
Route values
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Destroy("Destroy", "FileManagerData", new { id = 1 });
})
)
Destroy(System.String,System.String)
Sets controller and action for Destroy operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Destroy("Destroy", "FileManagerData");
})
)
Events(System.Action)
Configures the client-side events
Parameters
configurator - System.Action<DataSourceEventBuilder>
Configures the events of the DataSource.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData");
})
.Events(events => events.RequestStart("onRequestStart"))
)
Model(System.Action)
Configures the model
Parameters
configurator - System.Action<FileManagerModelDescriptorBuilder>
Configures the DataSource's model.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData");
})
.Model(model => model
.Field("name")
.DefaultValue("N/A")
)
)
ServerFiltering()
Specifies if filtering should be handled by the server.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData");
})
.ServerFiltering()
)
ServerFiltering(System.Boolean)
Specifies if filtering should be handled by the server.
Parameters
enabled - System.Boolean
Specifies if server filtering is enabled.
Example
@(Html.Kendo().FileManager()
.Name("filemanager")
.DataSource(dataSource =>
{
dataSource.Read("Read", "FileManagerData");
})
.ServerFiltering(false)
)