自定义控制的SelectedIndexChanged没有被解雇

我的自定义控件基于Telerik的控制自定义控制的SelectedIndexChanged没有被解雇

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

ComboCountry_SelectedIndexChanged没有被解雇,但是如果使用<telerik:RadComboBox />一切正常。如何解决这个问题呢?

回答:

添加OnSelectedIndexChanged = “ComboCountry_SelectedIndexChanged” 帮助

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

以上是 自定义控制的SelectedIndexChanged没有被解雇 的全部内容, 来源链接: utcz.com/qa/261366.html

回到顶部