我在ascx中有这个
<div >
<telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" Width="250px" EnableFiltering="True"
Skin="Metro" DataFieldID="ID" DataFieldParentID="Parent" DataTextField="Name" DataValueField="Code"
OnEntryAdded="RadDropDownTree1_EntryAdded1" OnEntryRemoved="RadDropDownTree1_EntryRemoved1">
<dropdownsettings height="200" AutoWidth="Enabled" />
<buttonsettings showclear="false" />
<filtersettings highlight="Matches" emptymessage="Type here to find a Department" />
</telerik:RadDropDownTree>
</div>
并在服务器端
protected void RadDropDownTree1_EntryAdded1(object sender, DropDownTreeEntryEventArgs e)
{
throw new NotImplementedException();
}
protected void RadDropDownTree1_EntryRemoved1(object sender, DropDownTreeEntryEventArgs e)
{
throw new NotImplementedException();
}
但是随着DropDownTree的改变而没有异常
答案 0 :(得分:0)
尝试将AutoPostBack
设置为true
。
确保您的网页指示中的AutoEventWireUp
设置为true