This is a migrated thread and some comments may be shown as answers.

OnEntryAdded not triggering

1 Answer 77 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 14 Oct 2013, 03:58 PM
I have taken many radComboBoxes with treeViews inside of them and converted them to the RadDropDownTree.  On all the previous ones the onEntryAdded has triggered but on only one of them it is not why could this be?  Here is the one that is broken.

<telerik:RadDropDownTree
    ID="personalCriteriaDropDownTree"
    runat="server"
    AutoPostBack="True"
    DefaultMessage="Enterprise"
    DataFieldID="ID"
    DataFieldParentID="ParentID"
    DataTextField="Name"
    DataValueField="TYPE"
    DropDownSettings-AutoWidth="Disabled"
    DropDownSettings-Height="400px"
    ExpandNodeOnSingleClick="True"
    FullPathDelimiter=" > "
    OnClientEntryAdding="onProgramDropDownClientEntryAdding"
    OnClientEntryAdded="persNodeClicking"
    OnClientEntryRemoved="onProgramDropDownClientEntryRemoved"
    OnClientDropDownClosed="persNodeClosing"
    OnEntryAdded ="ProgramDropDownTree_EntryAdded"
    OnNodeDataBound="PersonalCriteriaDownTree_NodeDataBound"
    TextMode="FullPath"
    Width="300px">
    <HeaderTemplate>
        <div class="header">
            <span style="color: red">* Words in Bold are selectable                                       
            </span>
        </div>
    </HeaderTemplate>
    <FooterTemplate>
        <div class="footer">
            <span style="color: red">* Words in Bold are selectable
 
            </span>
        </div>
    </FooterTemplate>
</telerik:RadDropDownTree>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Oct 2013, 06:29 AM
Hi Trevor,

Please try the following code snippet that I tried which works fine at my end.

ASPX:
<telerik:RadDropDownTree ID="personalCriteriaDropDownTree" runat="server" AutoPostBack="true"
    DefaultMessage="Enterprise" DataFieldID="id" DataFieldParentID="parentid" DataTextField="text"
    DataValueField="id" DropDownSettings-AutoWidth="Disabled" DropDownSettings-Height="400px"
    ExpandNodeOnSingleClick="True" OnEntryAdded="ProgramDropDownTree_EntryAdded"
    TextMode="FullPath" Width="300px" DataSourceID="SqlDataSource1"  >
    <HeaderTemplate>
        <div class="header">
            <span style="color: red">* Words in Bold are selectable </span>
        </div>
    </HeaderTemplate>
    <FooterTemplate>
        <div class="footer">
            <span style="color: red">* Words in Bold are selectable </span>
        </div>
    </FooterTemplate>
</telerik:RadDropDownTree>
<br />
<asp:Label ID="Label1" runat="server">
</asp:Label>

C#:
protected void ProgramDropDownTree_EntryAdded(object sender, Telerik.Web.UI.DropDownTreeEntryEventArgs e)
{
    Label1.Text = "Entry added event is fired, selected entry is " + e.Entry.Text;
         
}

Thanks,
Shinu.
Tags
DropDownTree
Asked by
Trevor
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or