Ticket T836947
Visible to All Users

Blazor ComboBox - How to use SelectedItemChanged with @bind-SelectedItem

created 5 years ago

Hi all,

i am using a ComboBox on a Form

C#
<DxFormLayoutItem Caption="Cost Type:" ColSpanMd="12"> <Template> <DxComboBox NullText="Select Cost Type ..." Data="@costtypesList" TextFieldName="CostTypeName" ReadOnly="isDisabledMode" @bind-SelectedItem="@request.CostType"/> </Template> </DxFormLayoutItem>

I would like to handle the SelectedItemChanged event but it already generated by @bind-SelectedItem

How can handle the event to add some own code?
Thanks.

Answers approved by DevExpress Support

created 5 years ago

Hello,

I suggest that you check the approach from the Combo Box for Blazor - How to implement the scenario with cascading combo boxes and validation ticket. It describes a similar case.
Please let me know if it meets your requirements.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.