Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views

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

 

 

Ivan Danchev
Telerik team
 answered on 27 Aug 2015
1 answer
72 views

Hi,

 

In the following code, the default sorting is by "clientId". How do I make the  sorting default by "Name"?

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" CssClass="RadGrid RadGrid_Silk" OnItemCommand="itemClickRadGrid" Visible="true" OnItemDataBound="RadGrid1_ItemDataBound"                 AllowSorting="True" AllowPaging="True" PageSize="100" AutoGenerateColumns="false" AllowFilteringByColumn="false" OnNeedDataSource="RadGrid1_NeedDataSource1">                 <MasterTableView GroupLoadMode="Client" TableLayout="Fixed" EnableGroupsExpandAll="false" DataKeyNames="FilingIdentifier" ShowHeader="false">                     <GroupByExpressions>                         <telerik:GridGroupByExpression>                             <SelectFields>                                 <telerik:GridGroupByField HeaderValueSeparator=" " HeaderText=" " FieldName="Name" SortOrder="Ascending"></telerik:GridGroupByField>                             </SelectFields>                             <GroupByFields>                                 <telerik:GridGroupByField FieldName="clientId"></telerik:GridGroupByField>                             </GroupByFields>                         </telerik:GridGroupByExpression>                     </GroupByExpressions>                     <Columns>                                                 <telerik:GridBoundColumn DataField="TaxYear" HeaderText="Year" UniqueName="TaxYear"></telerik:GridBoundColumn>                         <telerik:GridBoundColumn DataField="PreviousFiling" Visible="false" UniqueName="PreviousFiling"></telerik:GridBoundColumn>                         <telerik:GridBoundColumn DataField="ForwardFiling" Visible="false" UniqueName="ForwardFiling"></telerik:GridBoundColumn>                         <telerik:GridButtonColumn Text="Launch" UniqueName="lauchrow" CommandName="launchRow" ButtonType="PushButton" HeaderStyle-Width="70px"></telerik:GridButtonColumn>                         <telerik:GridButtonColumn Text="Add tax year" UniqueName="addTaxYear" CommandName="cf" ButtonType="PushButton" HeaderStyle-Width="110px"></telerik:GridButtonColumn>                     </Columns>                 </MasterTableView>                 <GroupingSettings />                 <ClientSettings AllowDragToGroup="false">                     <Selecting AllowRowSelect="true" />                 </ClientSettings>             </telerik:RadGrid>

 

 

Thanks

Pavlina
Telerik team
 answered on 27 Aug 2015
1 answer
367 views

I'm binding a country list data to radcombobox with multiple selection option. Its working fine, but if i want to search the items by typing the text. I'm facing some problem. 

 Say if i search for "India", i will type "indi" in textfield of a radcombobox it will show "india" so that i will check it.

It is working as of the situation now, but if want to select one more country by typing the text like for "United states", 

Now the issue is " I need to clear the existing text "indi" in the field by giving backspace" to search for a new one which is "united states", but  in combobox it remains checked. so there is no problem with the logic. But for a user will be like he is unchecking the existing country for selecting the new one.

 

It would be better to have a separator for each selected item which is checked. 

 like this..

If i type "indi" it will showup "india" then after i checked it, if i want to search a new one.

i can do this way.. India, "countryname to search for" , so that i can search new items by giving the comma 

 

Ivan Danchev
Telerik team
 answered on 27 Aug 2015
1 answer
44 views

Is it possible to show  specific days - not a day range;

 For instance show Monday, Tuesday and Friday?

Ivan Danchev
Telerik team
 answered on 27 Aug 2015
4 answers
1.1K+ views
Hi,

I have installed RAD controls Q2 2008 release suit.How can i know version number of the ontrols. I saw so many version listed out like 2008.2.826,2008.2.723 etc. Actually i want to raise a support ticket with appropriate version.

Please help me to know my controls's version number.

Thanks in advance.

Nataraj
Ivan Danchev
Telerik team
 answered on 27 Aug 2015
10 answers
132 views

Hi

When I try to drag a node in a diagram, the whole diagram is being dragged.

I am using Google chrome version 41.0.2272.118 m.

This does not happen in IE10 nor in FF.

Vessy
Telerik team
 answered on 27 Aug 2015
0 answers
129 views

 i am having problem to save file to FTP using RadAsyncUpload...  according to this control its is saving file to server first can i directly save this to FTP by changing TemporaryFolder  and TargetFolder to ftp destination with credentials. and is there another way to save file directly to FTP without saving it to server .. thanx in advance

 Note : MY FTP is on another server..and have username and password

Mohammad
Top achievements
Rank 1
 asked on 27 Aug 2015
37 answers
619 views
I could not find where we use to make suggestions about new controls, but I would like to see plans for an Org Chart control.
I am currently using this one:
http://www.smartwebcontrols.com/SampleCode/SmartChartLite/OrgChartwithBackground.aspx
But it would be cool to see you guys develop one to go with your incredible suite. I have used the telerik controls since you guys started, but this would be a great edition.
If not, does anyone have a suggestion about other "Affordable" Org Chart controls?
Thanks,
~bg
Eyup
Telerik team
 answered on 27 Aug 2015
1 answer
138 views

How could I set focus on the Radrating after client-side validation like:

 

http://docs.telerik.com/devtools/aspnet-ajax/controls/rating/how-to/radrating-with-customvalidatorplease help.

 

Marc

Slav
Telerik team
 answered on 27 Aug 2015
4 answers
167 views

Hi,

We have a problem with the menu when located near the bottom of pages.

Often there is a scroll (EnableAutoScroll is True for other reasons!), despite lots of space above. It doesn't expand up instead of down seems to be the main problem.

In the following example:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="menu.aspx.vb" Inherits="TestaTredjepartWeb.menu" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <table>
                <tr>
                    <td style="vertical-align: top; padding-bottom: 0px">
                        <div style="height: 200px; background-color: blue">
                        </div>
                        <div style="padding-bottom: 60px; background-color: red">
                            <telerik:RadMenu ID="menu" runat="server" RenderMode="Lightweight" ClickToOpen="true" ExpandDelay="0" EnableAutoScroll="true" OnClientItemOpening="function(sender, args){args.get_item()._defaultScrollSize = 0;}" >
                                <Items>
                                    <telerik:RadMenuItem Text="Test1" Value="item1">
                                        <Items>
                                            <telerik:RadMenuItem Text="1"></telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="2"></telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="3"></telerik:RadMenuItem>
                                            <telerik:RadMenuItem Text="4"></telerik:RadMenuItem>
                                        </Items>
                                    </telerik:RadMenuItem>
                                </Items>
                            </telerik:RadMenu>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

When resizing the browser window near the edge of the red area, the menu expands down with a scroll despite the large blue area above where it could have expanded up!

If making the window a little bit smaller than the red area, it works as expected and expands up!

If making the window a little bit larger than the red area, it also works as expected and expands up!

If making the window much larger than the red area, it also works as expected and expands down (without scroll)!

 

Regards
Andreas

Magdalena
Telerik team
 answered on 27 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?