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">
              <div></div>
              <video autoplay="autoplay" playsinline="playsinline" style="width: 320px; height: 240px;"></video>
            </div>
            <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>
                <RadzenButton ButtonStyle="ButtonStyle.Primary" style="display: inline-block; float: left; vertical-align: baseline" Icon="stop" Click="Camera.Stop">
                </RadzenButton>
              </div>
            </div>

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

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.

2 Likes

@korchev Your suggestion worked! Thanks!