Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146910 | Aug 25,2019 04:29 PM UTC | Aug 27,2019 10:40 AM UTC | Blazor | 3 |
![]() |
Tags: ListView |
fail: Microsoft.AspNetCore.SignalR.HubConnectionHandler[2]
Error when processing requests.
System.IO.InvalidDataException: The maximum message size of 32768B was exceeded.
The message size can be configured in AddHubOptions. |
services.AddServerSideBlazor();
services.AddServerSideBlazor().AddHubOptions(o =>
{
o.MaximumReceiveMessageSize = 102400000;
}); |
<ListViewTemplates>
<Template>
@{
….
….
<div id="list-logo" onclick="event.stopPropagation();">
<EjsButton Content="select"
@onmousedown="@(e => OnSelectListViewItem(currentData))"></EjsButton>
</div>
</div>
}
</Template>
</ListViewTemplates>
@code {
….
….
….
public void OnSelectListViewItem(NewsDataModel currentData)
{
Console.WriteLine(currentData.Description);
Console.WriteLine(currentData.Content);
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.