diff --git a/Demos/Blazorise.Demo/Pages/Tests/DataGrid/GroupSinglePage.razor b/Demos/Blazorise.Demo/Pages/Tests/DataGrid/GroupSinglePage.razor index 0df770a7ac..34b8c4cc4d 100644 --- a/Demos/Blazorise.Demo/Pages/Tests/DataGrid/GroupSinglePage.razor +++ b/Demos/Blazorise.Demo/Pages/Tests/DataGrid/GroupSinglePage.razor @@ -19,7 +19,8 @@ Responsive ShowPager ShowPageSizes - Groupable> + Groupable + GroupBy="x => x.Gender"> diff --git a/Demos/Blazorise.Demo/Pages/Tests/ListViewPage.razor b/Demos/Blazorise.Demo/Pages/Tests/ListViewPage.razor index 886329f5b8..ffa3bf90f4 100644 --- a/Demos/Blazorise.Demo/Pages/Tests/ListViewPage.razor +++ b/Demos/Blazorise.Demo/Pages/Tests/ListViewPage.razor @@ -1,4 +1,5 @@ @page "/tests/listview" +@using System.Linq @@ -20,18 +21,71 @@ + + + + With custom item content + + + + +
+ @context.Item.Iso + @context.Item.Capital +
+ @context.Text +
+
+
+
+
+
+ + + + + Styling Individual Items + + + + + + + + Selected Item: @selectedListViewItem?.Name + + + + + @code { [Inject] public CountryData CountryData { get; set; } - public IEnumerable Countries; + public List Countries; private Country selectedListViewItem { get; set; } protected override async Task OnInitializedAsync() { - Countries = await CountryData.GetDataAsync(); + Countries = (await CountryData.GetDataAsync()).ToList(); await base.OnInitializedAsync(); } } \ No newline at end of file diff --git a/Demos/Blazorise.Demo/Pages/Tests/SelectListPage.razor b/Demos/Blazorise.Demo/Pages/Tests/SelectListPage.razor index 9447d7a9ec..b18d37724e 100644 --- a/Demos/Blazorise.Demo/Pages/Tests/SelectListPage.razor +++ b/Demos/Blazorise.Demo/Pages/Tests/SelectListPage.razor @@ -28,6 +28,33 @@ + + + + With Multiple Selections + + + + Select Value + + + + + + + Selected value(s): @(selectedListValues != null ? string.Join( ',', selectedListValues ) : "") + + + + + @code { @@ -36,12 +63,11 @@ public IEnumerable Countries; private string selectedListValue { get; set; } + IReadOnlyList selectedListValues { get; set; } protected override async Task OnInitializedAsync() { Countries = await CountryData.GetDataAsync(); await base.OnInitializedAsync(); } - - } \ No newline at end of file