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
2829132
commit 6bcb6e7
Showing
16 changed files
with
105 additions
and
350 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"> | ||
@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> | ||
<tr> | ||
@foreach (IColumn column in ColumnList) | ||
{ | ||
<th>@column.HeaderText</th> | ||
} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if (Items != null && Items.Any()) | ||
@foreach (var h in HeaderRow()) | ||
{ | ||
@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> | ||
} | ||
</tbody> | ||
</table> | ||
} | ||
|
||
<CascadingValue Value="this" Name="ColumnCollection"> | ||
@Columns | ||
</CascadingValue> | ||
<th>@h</th> | ||
} | ||
</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.