<<input type="checkbox"> never has a "checked" attribute when inside a <GridColumn>

0 Answers 637 Views
Grid
Roland
Top achievements
Rank 3
Iron
Iron
Veteran
Roland asked on 14 Sep 2021, 11:36 AM

Using the latest Telerik for Blazor in a Blazor Server web application.

<GridColumn ... >
  <Template>
    @{
      var alert = (...)context; 
      // NB: Telerik suppresses the checked attribute, but the UI is correct and onchange() works
      <input type="checkbox" checked="@(alert.Checked)" @onchange="@(e => ...(alert, (bool)e.Value!))"/>
    }
  </Template>
</GridColumn>


Roland
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 14 Sep 2021, 01:11 PM | edited

Nevermind.

When I use bUnit to render the <TelerikGrid> without a browser, the rendered HTML does contain the checked="" attribute when the input is checked, so it may have something to do with the Chrome Debugger tools.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Roland
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or