当我更改DropDownTree的值时,OnDntryAdded不会在RadDropDownTree中触发

时间:2015-06-19 17:56:26

标签: asp.net telerik dotnetnuke

我在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的改变而没有异常

1 个答案:

答案 0 :(得分:0)

  1. 尝试将AutoPostBack设置为true

  2. 确保您的网页指示中的AutoEventWireUp设置为true