的观点
用于ASP的Telerik UI。NET MVC FileManagerprovides the Grid and List built-in views for content visualization.
要在视图之间切换,请使用工具栏按钮组。
网格视图
Grid视图是基于ASP的Telerik UI。NET MVCGrid component and renders the FileManager files in a tabular form. To control the Grid view configuration, use theviews.grid
FileManager的对象。
@(Html.Kendo(). filemanager (). name ("filemanager") . views (v => v. grid (grid => grid. view))。Columns(cols => cols. add ().Field(....))))).
显示其Grid视图类型的FileManager
将网格视图设置为初始视图
默认情况下,FileManager的初始视图是List view。要将初始视图设置为网格视图,请使用InitialView ()
配置属性。
@(Html.Kendo().FileManager() .Name("filemanager") .InitialView("grid"))
列表视图
列表或缩略图视图是基于Telerik UI的ASP。NET MVCListView component and renders the FileManager content as a list of thumbnails with each thumbnail representing a file. To control the configuration of the List View, use theviews.list
FileManager的对象。
@ (Html.Kendo () .FileManager () . name(“文件管理”).Views (v = > v.List(列表= > list.TemplateId ("..."))) )
显示其List视图类型的FileManager