forked from FritzAndFriends/BlazorWebFormsComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FritzAndFriends#163 not yet complete WIP
- Loading branch information
1 parent
4ed0333
commit 5d1294b
Showing
16 changed files
with
96 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,23 @@ | ||
@typeparam ItemType | ||
@inherits BaseModelBindingComponent<ItemType> | ||
@using Interfaces | ||
@if (ColumnList.Any()) | ||
{ | ||
<table class="@CssClass"> | ||
<thead> | ||
<tr> | ||
@foreach (IColumn<ItemType> column in ColumnList) | ||
@inherits ListView<ItemType> | ||
@typeparam ItemType | ||
<ListView runat="server" | ||
ItemType="ItemType" | ||
Context="Item" | ||
Items="@Items"> | ||
<ItemTemplate><tr></tr></ItemTemplate> | ||
<LayoutTemplate Context="itemPlaceHolder"> | ||
<table class="table" id="gridview"> | ||
<thead> | ||
@foreach (var h in HeaderRow()) | ||
{ | ||
<th>@column.HeaderText</th> | ||
} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if (Items != null && Items.Any()) | ||
{ | ||
@foreach (ItemType item in Items) | ||
{ | ||
<CascadingValue Value="this" Name="RowCollection"> | ||
<GridViewRow DataItem="item" Columns="ColumnList" /> | ||
</CascadingValue> | ||
} | ||
} | ||
else | ||
{ | ||
<tr> | ||
<td colspan=@ColumnList.Count> | ||
@EmptyDataText | ||
</td> | ||
</tr> | ||
<th>@h</th> | ||
} | ||
</tbody> | ||
</table> | ||
} | ||
|
||
<CascadingValue Value="this" Name="ColumnCollection"> | ||
@Columns | ||
</CascadingValue> | ||
</thead> | ||
<tbody> | ||
@itemPlaceHolder | ||
</tbody> | ||
</table> | ||
</LayoutTemplate> | ||
</ListView> | ||
@code{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.