OnEntryAdded not triggering

2 posts, 0 answers
  1. Trevor
    Trevor avatar
    1 posts
    Member since:
    Jul 2013

    Posted 14 Oct 2013 Link to this post

    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>
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Oct 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top