Hi, i want to ask why OnEntryAdded on RadDropDownTree is not working. I have a RadDropDownTree and RadHTMLChart
The scenario is when i pick one of the nodes, get the value, set it on RadHTMLChart, and render it using AJAX
This is piece of the code:
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" /><telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RDDTreeTeam"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ProgressChart" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Silk"></telerik:RadAjaxLoadingPanel><telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"><div> <table width="100%" border="1"> <tr> <td rowspan="2" valign="top"> <telerik:RadDropDownTree ID="RDDTreeTeam" runat="server" Width="250" EnableFiltering="true" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Text" DataValueField="Value" Skin="Silk" OnEntryAdded="RDDTreeTeam_EntryAdded" OnClientDropDownClosing="OnClientDropDownClosing"> <DropDownSettings Height="200" OpenDropDownOnLoad="true" CloseDropDownOnSelection="false"/> <ButtonSettings ShowClear="true" /> <FilterSettings Highlight="Matches" EmptyMessage="Type here" /> </telerik:RadDropDownTree> </td> <td class="style1" align="center"> <telerik:RadHtmlChart runat="server" ID="ProgessChart" Width="300px" Height="300px" Transitions="true" Skin="Silk"> <ChartTitle Text="Progress Sales"> <Appearance Align="Center" Position="Top"> </Appearance> </ChartTitle> <Legend> <Appearance Position="Bottom" Visible="true"> </Appearance> </Legend> <PlotArea> <Series> <telerik:PieSeries StartAngle="90" DataFieldY="ProgressAmount" NameField="ProgressType"> <LabelsAppearance Position="OutsideEnd" DataFormatString="{0}"> </LabelsAppearance> <TooltipsAppearance Color="White" DataFormatString="{0}"></TooltipsAppearance> </telerik:PieSeries> </Series> </PlotArea> </telerik:RadHtmlChart> </td> </tr> </table></div></telerik:RadAjaxPanel>
protected void RDDTreeTeam_EntryAdded(object sender, DropDownTreeEntryEventArgs e){ if (e.Entry.Value == "1") { DataTable dtPie = new DataTable(); dtPie.Columns.Add(new DataColumn("ProgressAmount")); dtPie.Columns.Add(new DataColumn("ProgressType")); dtPie.Columns.Add(new DataColumn("Color")); dtPie.Columns.Add(new DataColumn("IsExploded")); dtPie.Rows.Add(new object[] { 803, "On Progress", "Red", false }); dtPie.Rows.Add(new object[] { 464, "Close Selling", "Green", false }); dtPie.Rows.Add(new object[] { 505, "Rejected", "Blue", false }); dtPie.Rows.Add(new object[] { 201, "Not Yet Follow Up", "Yellow", false }); ProgessChart.DataSource = dtPie; ProgessChart.DataBind(); } else if (e.Entry.Value == "2") { DataTable dtPie = new DataTable(); dtPie.Columns.Add(new DataColumn("ProgressAmount")); dtPie.Columns.Add(new DataColumn("ProgressType")); dtPie.Columns.Add(new DataColumn("Color")); dtPie.Columns.Add(new DataColumn("IsExploded")); dtPie.Rows.Add(new object[] { 203, "On Progress", "Red", false }); dtPie.Rows.Add(new object[] { 464, "Close Selling", "Green", false }); dtPie.Rows.Add(new object[] { 805, "Rejected", "Blue", false }); dtPie.Rows.Add(new object[] { 401, "Not Yet Follow Up", "Yellow", false }); ProgessChart.DataSource = dtPie; ProgessChart.DataBind(); }}
But, when i click on the node, there's nothing happened.
Please help me.
Thank you in advance
