Hello,
I have the same problem with the boolean field behavior. It's always true.
However, I'm wondering if this issue is related to the checkbox component. When using a SfListBox as follows:
The ValueChange function always receives all of the items in the list (not only the selected ones)
Could you please advise if it's the same issue with the checkbox component?
P.S. I'm using Syncfusion.Blazor 20.1.0.55
Thanks
Hi Erick,
We have validated your reported query, for your clarification in ValueChange event args contains the list of item in args.Items and selected item value in args.value. Please refer the below code snippet.
[Index.razor]:
|
private void ListChange(ListBoxChangeEventArgs<string[], VehicleData> args) { var selected_item = args.Value; var list_of_items = args.Items; } |
Could you please check the above link and get back to us, if you need any further assistance on this.
Regards,
YuvanShankar A
Hi,
Thanks for your response. I have checked and args.Value is always null. It seems that does not work when th SfListBox has TValue="short[]" and it works when TValue="string[]". In previous versions it used to work with short[].
I made a code sample to show this difference:
Hi Erick,
Currently, we don’t have support
for your query, so we have logged this improvement
as a feature. It will be available
in our upcoming patch releases, which is schedule
on 18th June, 2022. You can
track the status of this improvement
using
below link from our feedback portal
Feedback link: https://www.syncfusion.com/feedback/35264/provides-the-short-type-values-support-to-tvalue-of-the-listbox
We appreciate your patience until then.
Regards,
YuvanShankar A
Thank you very much for your response. I will modify the code to use string type values in the listbox.
Regards,
Erick
Hi Erick,
As promised, we will include this fix in our upcoming patch release which is scheduled on June 18th, 2022. You can track its status from the below feedback link.
Feedback Link: https://www.syncfusion.com/feedback/35264/provides-the-short-type-values-support-to-tvalue-of-the-listbox
Regards,
YuvanShankar A
Hi Erick,
Sorry for the delay.
We are glad to announce that our Essential Studio 2022 Volume 2 release v20.2.0.36 is rolled out. We have included the fix for this issue in this release and is available for download under the following link.
Feedback Link: https://www.syncfusion.com/feedback/35264/provides-the-short-type-values-support-to-tvalue-of-the-listbox
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
YuvanShankar A