<EjsGrid ModelType="@Model" AllowPaging="true" TValue="Email"> @*Used EjsDataManager to bind data to Grid, so removed the DataSource property*@
<EjsDataManager Url="/api/email/getEmails" Adaptor="Syncfusion.EJ2.Blazor.Adaptors.UrlAdaptor"></EjsDataManager>
<GridPageSettings PageSize="25" PageSizes="this.pageSizes" />
<GridColumns>
<GridColumn HeaderText="AttachmentGroup" Width="150">
<Template>
@if (context is Email email && email.AttachmentGroup != null)
{
<EjsButton CssClass="e-primary">View</EjsButton>
}
</Template>
</GridColumn>
...
</GridColumns>
</EjsGrid>
|
public void ConfigureServices(IServiceCollection services)
{
...
services.AddSignalR(e =>
{
e.MaximumReceiveMessageSize = 102400000;
});
} |