Hello Together,
i use Blazor Wasm. I created a Reporting with a TextBox
And i put a TextBox in the Blazor Client. My goal is, to put a text in the textbox and the text in the reporting will be change. but how can i do it?
Thanks for your support
This is my client Code:
@page "/druck"
<PageTitle>Report Viewer</PageTitle>
<TelerikTextBox @bind-Value="@Bezeichnung"></TelerikTextBox>
<ReportViewer ServiceType="@ReportViewerServiceType.REST"
ServiceUrl="/api/Reports"
@bind-ReportSource="@ReportSource"
@bind-ScaleMode="@ScaleMode"
@bind-ViewMode="@ViewMode"
@bind-ParametersAreaVisible="@ParametersAreaVisible"
@bind-DocumentMapVisible="@DocumentMapVisible"
@bind-Scale="@Scale">
</ReportViewer>
@code {
public ScaleMode ScaleMode { get; set; } = ScaleMode.Specific;
public ViewMode ViewMode { get; set; } = ViewMode.Interactive;
public bool ParametersAreaVisible { get; set; }
public bool DocumentMapVisible { get; set; }
public double Scale { get; set; } = 1.0;
public string Bezeichnung { get; set; } = string.Empty;
public ReportSourceOptions ReportSource { get; set; } = new ReportSourceOptions("Report1.trdp",
new Dictionary<string, object>
{
// Add parameters if applicable
});
}
Controller Reporting Code:
using System.Net.Mail;
using System.Net;
using LIMeS.Shared;
using LIMeS.Shared.Utils;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Telerik.Reporting.Services;
using Telerik.Reporting.Services.AspNetCore;
/// <summary>
/// The LIMeS.Server.Controllers namespace contains all the controllers for the Action Management Server.
/// </summary>
///
namespace LIMeS.Server.Controllers
{
/// <summary>
/// The main controller for managing action types.
/// </summary>
[ApiController]
[Route("api/[controller]")]
public class ReportsController : ReportsControllerBase
{
public ReportsController(IReportServiceConfiguration reportServiceConfiguration)
: base(reportServiceConfiguration)
{
}
protected override HttpStatusCode SendMailMessage(MailMessage mailMessage)
{
throw new System.NotImplementedException("This method should be implemented in order to send mail messages");
}
}
}