kandi X-RAY | ContosoCrafts Summary
kandi X-RAY | ContosoCrafts Summary
ContosoCrafts
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ContosoCrafts
ContosoCrafts Key Features
ContosoCrafts Examples and Code Snippets
Community Discussions
Trending Discussions on ContosoCrafts
QUESTION
I try to use my repository data to display in card view, then press button to see more information about the item, it does not work. @OnClick is only working for JSON data
@using Microsoft.AspNetCore.Components.Web
- to access @onclick
and more option
repoItem
- my ItemRepository for get data from database
@OnClick="(e => SelectProduct(item.Id))"
- when i click item card, its shoud get item id send to SelectProduct(item.Id)
method.
but it work for following link. he works with JSON data but I need to work for model data.
https://github.com/dotnet-presentations/ContosoCrafts/blob/master/src/Components/ProductList.razor
...ANSWER
Answered 2020-Apr-19 at 17:02problem: @onclick
=".." is not hit my selectprodect
method breakpoint when clicking the button.
Solution: the mistake is Statup.cs
need to add services.AddServerSideBlazor()
in ConfigureServices
and then add in Configure
part endpoints.MapBlazorHub()
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ContosoCrafts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page