Skip to content

Accessing ChildContent of FluentDataGrid From Another Component via RenderFragment #3109

Answered by AathifMahir
AathifMahir asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried it?
FluentDataGrid is using ChildContent as a way of collecting the list of columns. It might be that that logic interferes with what you want to do

Here's the error

Nevermind, I have managed to fix the issue by Adding CascadingTypeParameter as An Attribute

@typeParam TGridItem
@attribute [CascadingTypeParameter(nameof(TGridItem))]

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@vnbaaij
Comment options

@AathifMahir
Comment options

@AathifMahir
Comment options

@AathifMahir
Comment options

Answer selected by AathifMahir
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