自定义控件SelectedIndexChanged未触发

问题描述 投票:0回答:1

我的自定义控件基于Telerik控件

Public Class ComboBoxСountries
    Inherits RadComboBox
End Class

使用控制

<mc:ComboBoxСountries ID="ComboCountry" runat="server" Width="100%" AutoPostBack="true"></mc:ComboBoxСountries>

事件

Protected Sub ComboCountry_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ComboCountry.SelectedIndexChanged
    ' not fired
End Sub

组合国家SelectedIndexChanged没有被解雇,但如果使用<telerik:RadComboBox />一切都好。如何解决这个问题呢?

vb.net telerik
1个回答
0
投票

添加SelectedIndexChanged =“Combo Country SelectedIndexChanged”帮助

<mc:ComboBoxСountries ID="ComboCountry" runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="ComboCountry_SelectedIndexChanged"></mc:ComboBoxСountries>
© www.soinside.com 2019 - 2024. All rights reserved.