Hi Support,
i want to move one application to Syncfusion Blazor, using the grid. Since I get dynamic data, the data source comes as a JSON array (see attached file: gridview.zip). Can you help me out getting those data displayed?
many thx,
Walter.
<EjsButton OnClick="btnLoadData" Content="Load Data"></EjsButton>
<EjsGrid TValue="Dictionary<string, object>" ID="AGrid" DataSource="@DynamicJsonCollection" AllowPdfExport="true" AllowExcelExport="true" AllowPaging="true" AllowSorting="true" AllowFiltering="true" AllowGrouping="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
</EjsGrid>
@code {
[CascadingParameter] List<Dictionary<string, object>> DynamicJsonCollection { get; set; }
private EjsGrid<String> AGrid;
public async void btnLoadData()
{
try
{
var Result = (await My.HttpClient.GetJsonAsync<xxx.DoxViewGrid>($"{My.ApiBaseUrl.AbsoluteUri}/{My.SessionJid.ToString()}/sw/local/morpheus/dox/get/grid/642847D4-0445-4D8A-A7D1-742297CE012D"));
DynamicJsonCollection = JsonConvert.DeserializeObject<List<Dictionary<string, object>>>(Result.Data);
}
catch (Exception ex)
{
}
}
Attachment:
gridview_data_9a144b33.zip