Have a Pivotgrid on the page but it does not display!
It has data, 188 rows.
I set the blnHideGrid_OrderListDetailsPGV to false so it show show on row 7.
The other girds blnHides are all set to true to hide them.
strGridHT = 400px.
Works fine for the other grids.
I dont see a reason its not showing.
On inspect the size of div = 1487x0 and the Pivotgrid = 0x0.
Not sure why!
<TelerikGridLayout>
<GridLayoutColumns>
<GridLayoutColumn Width="5%"></GridLayoutColumn>
<GridLayoutColumn Width="5%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
<GridLayoutColumn Width="9%"></GridLayoutColumn>
</GridLayoutColumns>
<GridLayoutRows>
<GridLayoutRow Height="@strAppMsgHT"></GridLayoutRow> @*App Msg*@
<GridLayoutRow Height="@strLabelsHT"></GridLayoutRow> @*Report/Filters Labels*@
<GridLayoutRow Height="@strRptFilterChoices1HT"></GridLayoutRow> @*Report/Filters Choices*@
<GridLayoutRow Height="@strRptFilterChoices2HT"></GridLayoutRow> @*Report/Filters Choices*@
<GridLayoutRow Height="@strRptFilterChoices3HT"></GridLayoutRow> @*Report/Filters Choices*@
<GridLayoutRow Height="@strSpacerHT"></GridLayoutRow> @*Spacer*@
<GridLayoutRow Height="@strGridHT"></GridLayoutRow> @*Report Grids *@
</GridLayoutRows>
<GridLayoutItem Row="7" Column="1" ColumnSpan="12">
<div hidden="@blnHideGrid_OrderListDetails">
@if (!blnHideGrid_OrderListDetails) @*Neededfor grid to work correctly*@
{
<TelerikGrid @ref="@gridOrderListDetails"
Data="@grdOrderListDetails"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
@*<GridCommandButton Command="CsvExport" Icon="@FontIcon.FileCsv">Export to CSV</GridCommandButton> *@
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@OrderListDetails_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@OrderListDetails_ExportAllPages" OnBeforeExport="@OrderListDetails_OnBeforeExcelExport" OnAfterExport="@OrderListDetails_OnAfterExcelExport" />
@* <GridCsvExport FileName="@msExportFileName" AllPages="@OrderListDetails_ExportAllPages" />*@
</GridExport>
</TelerikGrid>
}
</div>
<div hidden="@blnHideGrid_OrderListDetailsPGV">
<TelerikPivotGrid Data="@PivotData">
<PivotGridColumns>
<PivotGridColumn Name="@nameof(rtpOrderListDetailsPGMD.Status)" />
</PivotGridColumns>
<PivotGridRows>
<PivotGridRow Name="@nameof(rtpOrderListDetailsPGMD.Prime)" />
<PivotGridRow Name="@nameof(rtpOrderListDetailsPGMD.Period)" />
</PivotGridRows>
<PivotGridMeasures>
<PivotGridMeasure Name="@nameof(rtpOrderListDetailsPGMD.TotalAmt)" />
</PivotGridMeasures>
</TelerikPivotGrid>
</div>
<div hidden="@blnHideGrid_OrderListDetailsWNegDiscos">
@if (!blnHideGrid_OrderListDetailsWNegDiscos) @*Neededfor grid to work correctly*@
{
<TelerikGrid @ref="@gridOrderListDetailsWNegDiscos"
Data="@grdOrderListDetailsWNegDiscos"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@OrderListDetailsWNegDiscos_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@OrderListDetailsWNegDiscos_ExportAllPages" OnBeforeExport="@OrderListDetailsWNegDiscos_OnBeforeExcelExport" OnAfterExport="@OrderListDetailsWNegDisco_OnAfterExcelExport" />
</GridExport>
</TelerikGrid>
}
</div>
<div hidden="@blnHideGrid_OrderListHistoryDetails">
@if (!blnHideGrid_OrderListHistoryDetails) @*Neededfor grid to work correctly*@
{
<TelerikGrid @ref="@gridOrderListHistoryDetails"
Data="@grdOrderListHistoryDetails"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@OrderListHistoryDetails_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@OrderListHistoryDetails_ExportAllPages" OnBeforeExport="@OrderListHistoryDetails_OnBeforeExcelExport" />
</GridExport>
</TelerikGrid>
}
</div>
<div hidden="@blnHideGrid_Tasks">
@if (!blnHideGrid_Tasks) @*Neededfor grid to work correctly*@
{
<TelerikGrid @ref="@gridTasks"
Data="@grdTasks"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@Tasks_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@Tasks_ExportAllPages" OnBeforeExport="@Tasks_OnBeforeExcelExport" OnAfterExport="@Tasks_OnAfterExcelExport" />
</GridExport>
</TelerikGrid>
}
</div>
<div hidden="@blnHideGrid_SummaryByCarrier">
@if (!blnHideGrid_SummaryByCarrier) @*Neededfor grid to work correctly*@
{
<TelerikGrid @ref="@gridSummaryByCarrier"
Data="@grdSummaryByCarrier"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@SummaryByCarrier_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@SummaryByCarrier_ExportAllPages" OnBeforeExport="@SummaryByCarrier_OnBeforeExcelExport" />
</GridExport>
</TelerikGrid>
}
</div>
</GridLayoutItem>
this might help id my issue:
REPL that does something similar. At least here you get to see something but it seems the control is empty!
Click on the button and the data should be created and then display the grid.
Note! This worked when the code in GetData was in the pageinit section.