@bind-Value issue
See original GitHub issueI am new to Blazor, so forgive me if this issue is not related to your control. I have a Blazor page and ViewModel. If I click on BlazoredTypeahead control, my list is displayed and filtered based on user input. This works great.
<BlazoredTypeahead SearchMethod="@ViewModel.SearchPeople"
@bind-Value="@ViewModel.EngineeringTeamLeader"
EnableDropDown="false"
MinimumLength="3"
ShowDropDownOnFocus="true">
<SelectedTemplate Context="person">
@person.DisplayName
</SelectedTemplate>
<HelpTemplate>
Please enter at least 3 characters to perform a search.
</HelpTemplate>
<ResultTemplate Context="person">
@person.DisplayFullName
</ResultTemplate>
</BlazoredTypeahead>
in my ViewModel…
public Person EngineeringTeamLeader
{
get => _engineeringTeamLeader;
set
{
if (value == _engineeringTeamLeader)
{
return;
}
_engineeringTeamLeader = value;
if (value != null)
{
_concession.EngineeringTeamLeader = value.DisplayName;
}
OnPropertyChanged();
}
}
When I load the page with an existing record, I set the EngineeringTeamLeader object, however this name does not appear in the BlazoredTypeahead control. If I give the control focus and navigate away from it, the EngineeringTeamLeader name will appear. So, its appears the control knows about it, but does not initially render it.
Windows OS: Win10 20H2 Visual Studio Pro Version 16.10.0 Preview 1.0 Blazor Server-side app using .Net 5.0
Any suggestions?
Thanks,
Ron
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Error on bindValue - php
I'm using PHP, Mysql and XAMPP. The connection is fine already.. I tested some data inputs on a basic form etc. but My...
Read more >PDOStatement::bindValue - Manual
Binds a value to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement. Parameters...
Read more >Custom BindValue · Issue #1828 · ng-select/ ...
i need my bindvalue to have an object different from the selected one, is that possible? create a custom function for bindvalue.
Read more >How to avoid replacing some `?` in bindValue · Issue #3078
I have query fragment WHERE n.attributes ? ? and then execute $statement = $this->getEntityManager()->getConnection()->prepare($sql); ...
Read more >Difference between bindParam and bindValue in PHP
The PDOStatement::bindParam() function is an inbuilt function in PHP that is used to bind a parameter to the specified variable name.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I hit the same issue and downgrading to 4.5.0 fixed it.
I’ve hit the same issue, and downgrading from 4.6.0 to 4.5.1 (and 4.5.0) resolved the problem.