New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnEntryAdded
The server-side OnEntryAdded event occurs when an entry is added to the entry area, causing a postback. The postback is triggered when the dropdown is closed. To close the dropdown when a node is selected, you can set DropDownSettings-CloseDropDownOnSelection="true".
The event handler receives two parameters:
-
The instance of the DropDownTree firing the event
-
An event argument parameter that contains the following property:
-
Entry - returns the entry that has just being added to the input.
-
C#
protected void RadDropDownTree1_EntryAdded(object sender, DropDownTreeEntryEventArgs e)
{
Label1.Text = e.Entry.Text + " was added.";
}