简体   繁体   English

如何为 blazor 集成 Radzen 列表框组件?

[英]How can i integrate Radzen listbox component for blazor?

I am working on a Blazor web assembly app where I am using the Radzen components.我正在开发一个 Blazor Web 程序集应用程序,我在其中使用了 Radzen 组件。 Specifically, I am using the listbox component and I am running into an issue where I am unable to bind the Data to a list of floats.具体来说,我正在使用列表框组件,但遇到了无法将数据绑定到浮点数列表的问题。

I am following an example as stated here https://github.com/akorchev/blazor.radzen.com/blob/master/Pages/ListBoxPage.razor我正在遵循此处所述的示例https://github.com/akorchev/blazor.radzen.com/blob/master/Pages/ListBoxPage.razor

<RadzenListBox AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" @bind-value="multipleValues" Multiple="true" Data="@Tags" TextProperty="tagName" ValueProperty="tagId" Style="margin-bottom: 20px; height:200px;" />

The attribute names could not be inferred from bind attribute 'bind-Value'.无法从绑定属性“bind-Value”推断出属性名称。 Bind attributes should be of the form 'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format' etc.绑定属性的形式应该是“bind”或“bind-value”以及它们相应的可选参数,如“bind-value:event”、“bind:format”等。

尽管文档从未指定它,但问题是由于未使用 Radzen.Blazor 引起的...

@using Radzen.Blazor;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM