RadzenHtml error

Hello Radzen Team!

The designer does not recognize my referenced Camera:

Here's what's in the Content property:

<div class="row" id="camera" style="width: 320px; height: 240px; margin-bottom: 1rem">
              <video autoplay="autoplay" playsinline="playsinline" style="width: 320px; height: 240px;"></video>
            <div style="margin-bottom: 1rem" class="row">
              <div class="col-md-3">
                <RadzenButton ButtonStyle="ButtonStyle.Primary" style="display: block; float: left; vertical-align: baseline" Icon="videocam" Click="Camera.Play">
                <RadzenButton ButtonStyle="ButtonStyle.Primary" style="display: inline-block; float: left; vertical-align: baseline" Icon="stop" Click="Camera.Stop">

In the .razor page everything is found:
In the razor.cs the service is injected properly:

1 Like

Hi @kim,

Indeed this is a scenario which Radzen doesn't currently support in design time. One suggestion that would probably work is to use the Html component only for the video element and use components from the toolbox for the rest. This would allow Radzen to properly handle in design time the Click handlers of those buttons.


@korchev Your suggestion worked! Thanks!