The Wayback Machine - https://web.archive.org/web/20220128220616/https://github.com/dotnet/aspnetcore/issues/39847
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor does not passes typeparam TItem into EventCallback through attribute [CascadingTypeParameter(nameof(TItem))] #39847

Open
vsfeedback opened this issue Jan 28, 2022 · 2 comments

Comments

@vsfeedback
Copy link

@vsfeedback vsfeedback commented Jan 28, 2022

This issue has been moved from a ticket on Developer Community.


.net 6 Blazor can not pass typeparam TItem=UserCommonDto into EventCallback<ColumnCellChangeEventArgs<UserCommonDto, int, IntEdit>> through attribute [CascadingTypeParameter(nameof(TItem))] (first screenshot) but everething works fine if i declare TItem=UserCommonDto explicitly (second screenshot)

Component signature where i'm trying to pass typeparam: TNCRGridIntColumn

Compiler error:
Pages_DataGridTestPage_razor.g.cs(406,62,414,30): error CS1503: Argument 11: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'Microsoft.AspNetCore.Components.EventCallback<TNCR.AspNetCore.Razor.Grids2.Events.ColumnCellMouseEventArgs<TNCR.Playground.Shared.UserCommonDto, int, TNCR.AspNetCore.Razor.Edits.IntEdit>>'
Pages_DataGridTestPage_razor.g.cs(414,36,422,30): error CS1503: Argument 13: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'Microsoft.AspNetCore.Components.EventCallback<TNCR.AspNetCore.Razor.Grids2.Events.ColumnCellChangeEventArgs<TNCR.Playground.Shared.UserCommonDto, int, TNCR.AspNetCore.Razor.Edits.IntEdit>>'

! [1.png] (https://aka.ms/dc/image?name=B5fa553532c8f4070a24b5d59fa77bdc9637789417968285126_20220128-124315-1.png&tid=5fa553532c8f4070a24b5d59fa77bdc9637789417968285126)
! [2.png] (https://aka.ms/dc/image?name=B9a837ed3199a4cc69846e6ae17f10f79637789418019970397_20220128-124321-2.png&tid=9a837ed3199a4cc69846e6ae17f10f79637789418019970397)


Original Comments

Feedback Bot on 1/27/2022, 11:37 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@mkArtakMSFT
Copy link
Contributor

@mkArtakMSFT mkArtakMSFT commented Jan 28, 2022

Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project (ideally a GitHub repo) that illustrates the problem.

@msftbot
Copy link
Contributor

@msftbot msftbot bot commented Jan 28, 2022

Hi @vsfeedback. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants