Example of ValueExpression applied to ListBox

Hello,


Sorry for the silly question...


I am curious about the ValueExpression parameter for the SfListBox component. The description of " Specifies the expression for defining the value of the bound." is a bit vague. I have tried searching for help but can't find anything. Any pointers will be appreciated.


Peter


2 Replies

PE Peter March 9, 2022 07:04 PM UTC

After additional research I have a better understanding about the relationship between @bind-Value, ValueChanged and ValueExpression. Though, in the context of SfListBox, its practical use is less obvious. Perhaps an artifact from base inheritance that is there if one needs it.


Sorry for the silly question.


Peter



GK Gayathri KarunaiAnandam Syncfusion Team March 10, 2022 04:53 PM UTC

 
Hi Peter, 
  
The @bind-Value and ValueExpression both are used are two-way binding. We have used the ValueExpression in our source. We suggest you to use @bind-Value to change values. 
 
Regards, 
Gayathri K 


Loader.
Up arrow icon