I am afraid the Radzen.Blazor components do not include capabilities for reading data from the serial port. You can try with the built-in .NET SerialPort class.
I found this short C# to be working. But how can I asign it to a button in Radzen and display the result in a textbox?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Console.WriteLine("Serial read init");
SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
port.Open();
while (true)
{
Console.WriteLine(port.ReadLine());
}
Add an event handler for the Click event of the button and set the result to a variable. Then use the variable for the textbox value. You can check the online demos for the button and textbox to get some ideas.