The attribute names could not be inferred from bind attribute 'bind-Checked'

My code was working using SyncFusion.Blazor v18.1.0.43. Today I updated to SyncFusion.Blazor v18.1.0.45 and now I get an error ...

Error The attribute names could not be inferred from bind attribute 'bind-Checked'. Bind attributes should be of the form 'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format' etc.


    <div class="col-md-6">
        <SfCheckBox @bind-Checked="@CreateAccountBasicInfo.IsTaxExempt" Label="Tax Exempt?"></SfCheckBox>
    </div>

Did the Bind attribute for the control change with the update? I am not able to find a change log for the update so I can't check for breaking changes myself.



3 Replies

SD Saranya Dhayalan Syncfusion Team April 22, 2020 07:15 AM UTC

Hi David, 
 
Thank you for contacting Syncfusion support 
 
We have checked your reported issue, we are not able to reproduce it in our end in the 18.1.045 version. Please check the below code snippet 
 
@using Syncfusion.Blazor.Buttons 
 
    <SfCheckBox @bind-Checked="@CreateAccountBasicInfo.IsTaxExempt" Label="Tax Exempt?"></SfCheckBox> 
 
@code{ 
 
     
    public class CreateAccountBasicInfo 
    { 
        public static bool IsTaxExempt { get; set; } 
    } 
} 
 
we would like to let you know the following details to proceed further. 
 
1.       Please provide any customization done in the code snippet 
2.       If possible, please share your issue reproducible sample. 
 
Could you please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Saranya D 



DA David Adler April 22, 2020 02:37 PM UTC

Thanks for the reply. The problem was because I did not have the @using Syncfusion.Blazor.Buttons in my _imports.razor.



SD Saranya Dhayalan Syncfusion Team April 23, 2020 06:01 AM UTC

Hi David, 
 
Most welcome… 
 
We are happy to hear that your issue has been resolved. Please feel free to contact us if you need any further assistance on this. 
  
Regards, 
Saranya D 


Loader.
Up arrow icon