Error The attribute names could not be inferred from bind attribute 'bind-Value'.

Severity Code Description Project File Line Suppression State

Error The attribute names could not be inferred from bind attribute '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. CMS C:\G\Case Manager Blazor Edition\CaseManager_SyncFusion\CMS\Pages\EditEvent.razor 85


Here is my code:

                                <div id="myMatter">

                                    <Syncfusion.Blazor.Dropdowns.SfComboBox TValue="int?" TItem="VwActiveMatter"

                                                Width="300px"

                                                @bind-Value="@calendaritem.MatterId"

                                                DataSource="@MattersList"

                                                Placeholder=MyConstants.PLEASE_SELECT AllowFiltering=true>

                                        <ComboBoxFieldSettings Text="CaseNumber" Value="MatterId"></ComboBoxFieldSettings>

                                        <ComboBoxEvents TValue="int?" TItem="VwActiveMatter" OnValueSelect="ValueSelect" ValueChange="OnValueChange"></ComboBoxEvents>

                                    </Syncfusion.Blazor.Dropdowns.SfComboBox>

                                    <ValidationMessage For="@(() => calendaritem.MatterId)" />

                                </div>



2 Replies

MG Miles Gibson September 23, 2021 01:47 PM UTC

So... If I remove the " Syncfusion.Blazor.Dropdowns. " that is in front of " Syncfusion.Blazor.Dropdowns.SfComboBox ", the error goes away.  Why is that?



DR Deepak Ramakrishnan Syncfusion Team September 24, 2021 10:59 AM UTC

Greetings from Syncfusion support. 
We have validated your requirement . We suspect that you have mistakenly used small casing for the namespace reference(Syncfusion.Blazor.Dropdowns). So we request you change it to the correct casing (Syncfusion.Blazor.DropDowns.SfComboBox)  while referring it in inline . Also we suggest you to use the namespace at the top of  razor component or in _Imports.razor file as like below image . Also we request you to refer the below demo sample and UG documentation for your reference. 
[_Imports.razor] 
 
 
[Index.razor] 
 
 
 
Thanks, 
Deepak R. 


Loader.
Up arrow icon