类TelerikGrid < TItem >
用于Telerik Grid组件的类。
继承
系统。对象
Telerik.Blazor.Components.Common.BaseComponent
DataBoundComponent< TItem >
GridBase< TItem >
TableGridBase< TItem,GridCommandEventArgs>
TelerikGrid < TItem >
继承的成员
名称空间:Telerik.Blazor.Components
组装: Telerik.Blazor.dll
语法
公共类TelerikGrid: TableGridBase, IDisposable, IPagerContainer, IRowDraggableContainer, IValidationContainer, IPopupEditSettingsContainer, IGridContainer, IColumnContainer
类型参数
TItem 网格绑定到的模型的类型。 |
构造函数
TelerikGrid ()
宣言
公共TelerikGrid ()
属性
DetailTemplate
定义网格的详细模板。
宣言
public RenderFragment DetailTemplate {get;设置;}
属性值
Microsoft.AspNetCore.Components.RenderFragment< TItem > |
编辑模式
FilterMode
GridExport
定义导出配置。
宣言
public RenderFragment GridExport {get;设置;}
属性值
Microsoft.AspNetCore.Components.RenderFragment |
GridSettings
宣言
public RenderFragment GridSettings {get;设置;}
属性值
Microsoft.AspNetCore.Components.RenderFragment |
GridToolBar
定义Grid的工具栏。
宣言
public RenderFragment GridToolBar {get;设置;}
属性值
Microsoft.AspNetCore.Components.RenderFragment |
Groupable
定义网格是否可分组。
宣言
public bool可分组{get;设置;}
属性值
系统。布尔 |
LoadGroupsOnDemand
定义是否应按需加载组。
宣言
public bool LoadGroupsOnDemand{获取;设置;}
属性值
系统。布尔 |
OnRead
在读取数据源时触发。使用它来附加您自己的分页、排序和过滤逻辑。一旦附加,你必须在这里实现所有这些数据源操作,组件将不再为你执行这些操作。
宣言
public EventCallback OnRead {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridReadEventArgs> |
OnRowClick
当用户单击一行或按回车键时触发。
宣言
public EventCallback OnRowClick {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowClickEventArgs> |
OnRowCollapse
当用户使用鼠标或键盘折叠一行时触发。
宣言
public EventCallback OnRowCollapse {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowCollapseEventArgs> |
OnRowContextMenu
当用户通过单击或上下文菜单按钮触发上下文菜单事件时触发。
宣言
public EventCallback OnRowContextMenu {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowClickEventArgs> |
OnRowDoubleClick
当用户双击某行时触发。
宣言
public EventCallback OnRowDoubleClick {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowClickEventArgs> |
OnRowDrop
删除一行时触发。
宣言
public EventCallback> OnRowDrop {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowDropEventArgs< TItem > > |
OnRowExpand
当用户使用鼠标或键盘展开一行时触发。
宣言
public EventCallback OnRowExpand {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridRowExpandEventArgs> |
OnRowRender
每次渲染一行时调用。使用此选项可根据数据项向行添加自定义类。
宣言
public Action OnRowRender {get;设置;}
属性值
系统。行动<GridRowRenderEventArgs> |
onstatechange
控件中的更改的用户交互时触发GridState < TItem >.
宣言
public EventCallback> OnStateChanged {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridStateEventArgs< TItem > > |
OnStateInit
在网格初始化并且可以加载状态时调用。当您希望在页面重新加载时持久化更改时非常有用。
宣言
public EventCallback> OnStateInit {get;设置;}
属性值
Microsoft.AspNetCore.Components.EventCallback<GridStateEventArgs< TItem > > |
ScrollMode
SelectionMode
ShowColumnMenu
指定列菜单是否可见。
宣言
public bool ShowColumnMenu{获取;设置;}
属性值
系统。布尔 |
方法
AutoFitAllColumns ()
宣言
AutoFitAllColumns()
AutoFitAllColumnsAsync ()
宣言
公共任务AutoFitAllColumnsAsync()
返回
System.Threading.Tasks.Task |
AutoFitColumn(字符串)
宣言
AutoFitColumn(字符串id)
参数
系统。字符串id |
AutoFitColumnAsync(字符串)
宣言
AutoFitColumnAsync(string id)
参数
系统。字符串id |
返回
System.Threading.Tasks.Task |
AutoFitColumns (IEnumerable <字符串>)
宣言
AutoFitColumns(IEnumerable id)
参数
System.Collections.Generic.IEnumerable<系统。字符串>id |
AutoFitColumnsAsync (IEnumerable <字符串>)
宣言
(IEnumerable id)
参数
System.Collections.Generic.IEnumerable<系统。字符串>id |
返回
System.Threading.Tasks.Task |
BuildRenderTree (RenderTreeBuilder)
宣言
BuildRenderTree(RenderTreeBuilder __builder)
参数
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder__builder |
处理()
宣言
公共覆盖无效
覆盖
Telerik.Blazor.Components.Common。TableGridBase< TItem,Telerik.Blazor.Components.GridCommandEventArgs>.处理()
ExportToCsvAsync ()
将网格导出到可保存为CSV文件的流。
宣言
ExportToCsvAsync()
返回
System.Threading.Tasks.Task<System.IO.MemoryStream> |
ExportToExcelAsync ()
将网格导出到可保存为Excel文件的流。
宣言
> ExportToExcelAsync()
返回
System.Threading.Tasks.Task<System.IO.MemoryStream> |
GetItemFromDropIndex (Int32)
宣言
GetItemFromDropIndex(int index)
参数
系统。Int32指数 |
返回
TItem |
覆盖
Telerik.Blazor.Components.Common。TableGridBase< TItem,Telerik.Blazor.Components.GridCommandEventArgs>.GetItemFromDropIndex(System.Int32)
GetState ()
OnAfterRenderAsync(布尔)
宣言
OnAfterRenderAsync(bool firstRender)
参数
系统。布尔firstRender |
返回
System.Threading.Tasks.Task |
覆盖
Telerik.Blazor.Components.Common.BaseComponent.OnAfterRenderAsync (System.Boolean)
OnParametersSetAsync ()
宣言
任务OnParametersSetAsync()
返回
System.Threading.Tasks.Task |
覆盖
Telerik.Blazor.Components.Common.DataBoundComponent < TItem > .OnParametersSetAsync ()
PageData ()
宣言
任务PageData()
返回
System.Threading.Tasks.Task |
覆盖
Telerik.Blazor.Components.Common。TableGridBase< TItem,Telerik.Blazor.Components.GridCommandEventArgs>.PageData ()
SaveAsCsvFileAsync ()
将网格导出到一个文件,并将其发送到浏览器以供下载。
宣言
SaveAsCsvFileAsync
返回
System.Threading.Tasks.ValueTask |
SaveAsExcelFileAsync ()
将网格导出到一个文件,并将其发送到浏览器以供下载。
宣言
SaveAsExcelFileAsync
返回
System.Threading.Tasks.ValueTask |
SetParametersAsync (ParameterView)
宣言
SetParametersAsync(ParameterView参数)
参数
Microsoft.AspNetCore.Components.ParameterView参数 |
返回
System.Threading.Tasks.Task |
覆盖
Telerik.Blazor.Components.Common.DataBoundComponent < TItem > .SetParametersAsync (Microsoft.AspNetCore.Components.ParameterView)
设置状态(GridState < TItem >)
设置网格的状态。包括分组、筛选、编辑项、列状态等。
宣言
Task SetState(GridState state)
参数
GridState< TItem >状态 |
返回
System.Threading.Tasks.Task |