
Hi, in our application we receive notification from server signalR connection and update some controls UI (typical progress bar and TextBox).
I found an issue who generate an OutOfMemory exception when we loop to update ui with telerik controls.
I have replied the issue with a demo project (see attachment).
Note who i can reply the issue with this conditions:
- Initialize a SignalR connection (initialized but unused..)
- Use Telerik controls inside a EditForm (in the sample TelerikTextBox and TelerikNumericTextBox)
To reply the issue i generate an infinite loop who raise an event, inside the event handler i simply update ui controls and call StateHasChanged().
Starting the loop it reach about 2GB of memory in about 90 seconds and then raise an outofmemory exception.
If i replace TelerikTextBox/TelerikNumericTextBox with simple input control the memory grow up and remain stable to about 500MB without raising the OutOfMemory exception, so i think who garbage collector do his job.
If i not initialize the SignalR connection, the memory leak does not occurs.
Waiting for your reply.
Thanks
I have a byte[] of a PDF file that i show the user in a PdfViewer. In the toolbar, the user has the option to download the file or print it, in addition to other functions.
If the user downloads the file, opens the PDF in Google Chrome and prints it, the print quality is the same as the PDF file. On the other hand, if the user prints directly from the PdfViewer, the quality shown in the preview is lower and the margins are different - it looks like it renders the print as an image of an A4 paper.
Example of the bottom right corner in the Google Chrome print preview:
Example of the bottom right corner in the PdfViewer print preview:
Unfortunately, it is clearly visible that the quality is lower and the positioning is not the same.
Is there a workaround for this issue?

Hi, our team is using - https://docs.telerik.com/blazor-ui/components/grid/overview
We are trying to extend the 'GridColumn' control to have show/hide depending on if our user is authenticated, with some role-based things as well.
Where I've gotten to is something like this...
//AuthorizedGridColumn.razor
@typeparam TItem
@if (IsAuthorized)
{
<GridColumn Field="@Field" Title="@Title">
<Template Context="item">
@ChildContent((TItem)item)
</Template>
</GridColumn>
}
@code {
[Inject]
private AuthenticationStateProvider AuthenticationStateProvider { get; set; } = null!;
[Parameter]
publicstring Field { get; set; }
[Parameter]
publicstring Title { get; set; }
[Parameter]
public RenderFragment<TItem> ChildContent { get; set; }
[Parameter]
publicstring PolicyName { get; set; }
privatebool IsAuthorized { get; set; }
protected override async Task OnInitializedAsync()
{
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
var user = authState.User;
if (user.Identity == null)
{
IsAuthorized = false;
}
else
{
IsAuthorized = user.Identity.IsAuthenticated && user.IsInRole("Admin");
}
await base.OnInitializedAsync();
}
}
With usage that looks like...
<AuthorizedGridColumn TItem="OurClass" Field="@nameof(OurClass.OurProperty)" Title="Something">
<ChildContent Context="binding">
@{
<p>Only Admins!</p>
}
</ChildContent>
</AuthorizedGridColumn><AuthorizedGridColumn TItem="OurClass" Field="@nameof(OurClass.OurProperty)" Title="Something">
<ChildContent Context="binding">
@{
<p>Only Admins!</p>
}
</ChildContent>
</AuthorizedGridColumn>
<GridColumn></GridColumn>
<GridColumn></GridColumn>
<AuthorizeView Roles="Admin">
<GridColumn></GridColumn>
</AuthorizeView>
<GridColumn></GridColumn>
<GridColumn></GridColumn>


I just updated from 4.0.1 to 4.4 and it broke my gridlayouts. I'm guessing it may have to do with the dependencies.
How do I updte the items listed below? Will this resolve my issue?
Before Update:
After Update:

