I cannot make the BlazorBootstrap Grid work! #1272
-
|
I've been following along to get a simple display of 25 records of bogus data. I've been following the sample given here, but it shows nothing. Here's my Blazor code: The only thing that appears on the Home page is:
and
That's it. Nothing more. And here's a snippet of the C# code: using LearnBlazorBootstrap.Models;
namespace LearnBlazorBootstrap.Components.Pages;
public partial class Home
{
public IEnumerable<Person> People { get; set; } = default!;
protected override void OnInitialized()
{
// Sample data for demonstration purposes
People = GetPeople();
}
private static List<Person> GetPeople()
{
return
[
new Person { Id = 1, FirstName = "John", LastName = "Doe", Age = 30 },
new Person { Id = 2, FirstName = "Jane", LastName = "Smith", Age = 25 },
new Person { Id = 3, FirstName = "Bob", LastName = "Johnson", Age = 40 },You'll notice in the Blazor code that I have So, I need help. I'm not finding the documentation useful, as it doesn't specify things like what options are available for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Change Or better: to and
|
Beta Was this translation helpful? Give feedback.
Change
Data="@People"ToData="People".Or better:
to
and
Data="_people"