Skip to content

toggle event for DetailRowTemplate #3194

Answered by ArgoZhang
fastlink30 asked this question in Q&A
Discussion options

You must be logged in to vote

@fastlink30 for now there is a parameter

/// <summary>
/// Get/Set Whether show empty data default false
/// </summary>
[Parameter]
public bool ShowEmpty { get; set; }

control whether to display an empty text or custom template use

/// <summary>
/// Get/Set template for no data. default null
/// </summary>
[Parameter]
public RenderFragment? EmptyTemplate { get; set; }

same as your requirement EmptyDataTemplate

The key question

[Parameter]
public Func<TItem, bool, Task>? OnToggleDetailRowCallback { get; set; }

first args TItem row context instance
second args bool indicate the row status is expanded or collapsed

link PR: #3218

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@fastlink30
Comment options

@ArgoZhang
Comment options

@ArgoZhang
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fastlink30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants