Commit 5194cb8 1 parent f7384e0 commit 5194cb8 Copy full SHA for 5194cb8
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1090,7 +1090,8 @@ The `OnRowDoubleClick` event handler receives a `TreeListRowClickEventArgs` argu
1090
1090
@code {
1091
1091
private void OnRowDoubleClickHander(TreeListRowClickEventArgs args)
1092
1092
{
1093
- var clickedRow = args.Item as Employee;
1093
+ var clickedRow = (Employee)args.Item;
1094
+ string columnField = args.Field;
1094
1095
}
1095
1096
1096
1097
public List<Employee> Data { get; set; }
@@ -1201,9 +1202,9 @@ The `OnRowContextMenu` event handler receives a `TreeListRowClickEventArgs` argu
1201
1202
1202
1203
private void OnRowContextMenuHandler(TreeListRowClickEventArgs args)
1203
1204
{
1204
- var clickedRow = args.Item as Employee ;
1205
+ var clickedRow = (Employee) args.Item;
1205
1206
1206
- logger = $"OnRowContextMenu event fired from right clicking on {clickedRow.Name}";
1207
+ logger = $"OnRowContextMenu event fired from right clicking on row {clickedRow.Name} and column {args.Field }";
1207
1208
}
1208
1209
1209
1210
public List<Employee> Data { get; set; }
You can’t perform that action at this time.
0 commit comments