Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
42 views

I am able to bind pie chart data from code behind but I am not sure how to bind my Javascript object to Pie chart.

I am using ASP.NET Web Form and using AJAX to call Handler. I need to bind data after handler returns data. 

Anuj
Top achievements
Rank 1
 asked on 15 Sep 2023
0 answers
22 views
In RadOrgChart , Why is this happening ?
Pro
Top achievements
Rank 1
 asked on 14 Jul 2023
8 answers
91 views
We have developed an application which uses Telerik Radchart controls and it all works successfully on 2 webservers, one here in South Africa (culture EN-SA) and one in the UK (En-UK). However, when is was deployed to a clean Windows 2008 server in Italy (culture IT-Italian) the error below occurs. Thinking that this was culture specific I changed it to En-SA but we still get the error. There was a similar post on your system from Sep 2009 but no solution was posted so I am asking for your help.

Server Error in '/MagVLT' Application.


Input value is invalid

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Input value is invalid

Source Error:

 

Line 434:                                </td>

Line 435:                                <td>

Line 436:                                    <telerik:RadChart ID="rdcTotalBet" runat="server" DataSourceID="SqlDataSource1" DefaultType="Line"

Line 437:                                        Skin="Mac">

Line 438:                                        <Series>


Source File: c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx    Line: 436

Stack Trace:

 

[ArgumentException: Input value is invalid]

   Telerik.Charting.Styles.MarginsConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +638

   System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text) +63

   Telerik.Charting.Styles.ChartMargins.Parse(String value, CultureInfo culture) +46

   ASP.cemshome_aspx.__BuildControl__control154(StyleExtendedLabel __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

   ASP.cemshome_aspx.__BuildControl__control153(ChartLegend __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

   ASP.cemshome_aspx.__BuildControlrdcTotalBet() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

   ASP.cemshome_aspx.__BuildControl__control115() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:429

   ASP.cemshome_aspx.__BuildControl__control114(HtmlTableCellCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428

   ASP.cemshome_aspx.__BuildControl__control113() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428

   ASP.cemshome_aspx.__BuildControl__control112(HtmlTableRowCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427

   ASP.cemshome_aspx.__BuildControltabRevenue() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427

   ASP.cemshome_aspx.__BuildControl__control3(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10

   System.Web.UI.UpdatePanel.CreateContents() +97

   ASP.cemshome_aspx.__BuildControl__control2() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10

   ASP.cemshome_aspx.__BuildControlContent1(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:9

   ASP.cemsmaster_master.__BuildControlcphDetail() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:238

   ASP.cemsmaster_master.__BuildControlform1() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:55

   ASP.cemsmaster_master.__BuildControlTree(cemsmaster_master __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:1

   ASP.cemsmaster_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\magvlt\9729e21d\12fe1d48\App_Web_cemsmaster.master.cdcab7d2.szqdenly.0.cs:0

   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1305

   System.Web.UI.Page.get_Master() +69

   System.Web.UI.Page.ApplyMasterPage() +18

   System.Web.UI.Page.PerformPreInit() +58

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256

 


Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205

Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 updated answer on 24 May 2023
1 answer
120 views

Hello everyone.

I just can't manage to upgrade my RadChart to a RadHtmlChart because of the differences...

Is there an easier way than doing it manually?

Any sort of help is appreciated. Thanks!


<telerik:RadChart ID="RadChart1" runat="server" DataGroupColumn="jours" 
                            DataSourceID="SDSGraph7I" Skin="Mac" Width="800px">
                            <Series>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J">
                                    <Appearance>
                                        <FillStyle MainColor="55, 167, 226" SecondColor="22, 85, 161">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+1">
                                    <Appearance>
                                        <FillStyle MainColor="223, 87, 60" SecondColor="200, 38, 37">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+2">
                                    <Appearance>
                                        <FillStyle MainColor="118, 203, 76" SecondColor="73, 166, 22">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+3">
                                    <Appearance>
                                        <FillStyle MainColor="119, 83, 76" SecondColor="88, 59, 52">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+4">
                                    <Appearance>
                                        <FillStyle MainColor="255, 222, 0" SecondColor="242, 188, 0">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+5">
                                    <Appearance>
                                        <FillStyle MainColor="164, 65, 221" SecondColor="125, 24, 167">
                                            <FillSettings GradientMode="Vertical">
                                            </FillSettings>
                                        </FillStyle>
                                        <TextAppearance TextProperties-Color="Black">
                                        </TextAppearance>
                                    </Appearance>
                                </telerik:ChartSeries>
                                <telerik:ChartSeries DataYColumn="valeur" Name="J+6">
                                </telerik:ChartSeries>
                            </Series>
                            <PlotArea>
                                <XAxis AutoScale="False" DataLabelsColumn="grpcattarif" MaxValue="4" 
                                    MinValue="1" Step="1">
                                    <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">
                                        <MajorGridLines Color="209, 222, 227" PenStyle="Solid" />
                                        <TextAppearance TextProperties-Color="51, 51, 51">
                                        </TextAppearance>
                                    </Appearance>
                                    <AxisLabel>
                                        <TextBlock>
                                            <Appearance TextProperties-Color="51, 51, 51">
                                            </Appearance>
                                        </TextBlock>
                                    </AxisLabel>
                                    <Items>
                                        <telerik:ChartAxisItem Value="1">
                                            <TextBlock Text="BREST          ">
                                            </TextBlock>
                                        </telerik:ChartAxisItem>
                                        <telerik:ChartAxisItem Value="2">
                                            <TextBlock Text="BRIEUC         ">
                                            </TextBlock>
                                        </telerik:ChartAxisItem>
                                        <telerik:ChartAxisItem Value="3">
                                            <TextBlock Text="QUIMPER        ">
                                            </TextBlock>
                                        </telerik:ChartAxisItem>
                                        <telerik:ChartAxisItem Value="4">
                                            <TextBlock Text="VANNES         ">
                                            </TextBlock>
                                        </telerik:ChartAxisItem>
                                    </Items>
                                </XAxis>
                                <YAxis>
                                    <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" 
                                        MinorTick-Color="134, 134, 134" MinorTick-Width="0">
                                        <MajorGridLines Color="209, 222, 227" />
                                        <MinorGridLines Color="233, 239, 241" />
                                        <TextAppearance TextProperties-Color="51, 51, 51">
                                        </TextAppearance>
                                    </Appearance>
                                    <AxisLabel>
                                        <TextBlock>
                                            <Appearance TextProperties-Color="51, 51, 51">
                                            </Appearance>
                                        </TextBlock>
                                    </AxisLabel>
                                </YAxis>
                                <Appearance>
                                    <FillStyle FillType="Solid" MainColor="White">
                                    </FillStyle>
                                    <Border Color="134, 134, 134" />
                                </Appearance>
                            </PlotArea>
                            <Appearance Corners="Round, Round, Round, Round, 6">
                                <FillStyle FillType="Image">
                                    <FillSettings BackgroundImage="{chart}" ImageDrawMode="Flip" ImageFlip="FlipX">
                                    </FillSettings>
                                </FillStyle>
                                <Border Color="138, 138, 138" />
                            </Appearance>
                            <ChartTitle>
                                <Appearance Position-AlignedPosition="Top">
                                    <FillStyle MainColor="">
                                    </FillStyle>
                                </Appearance>
                                <TextBlock Text="Point Parc � 7 jours">
                                    <Appearance TextProperties-Font="Tahoma, 13pt">
                                    </Appearance>
                                </TextBlock>
                            </ChartTitle>
                            <Legend>
                                <Appearance Dimensions-Margins="15%, 3%, 1px, 1px" 
                                    Position-AlignedPosition="TopRight">
                                    <ItemMarkerAppearance Figure="Square">
                                        <Border Color="134, 134, 134" />
                                    </ItemMarkerAppearance>
                                    <FillStyle MainColor="">
                                    </FillStyle>
                                    <Border Color="Transparent" />
                                </Appearance>
                            </Legend>
                        </telerik:RadChart>
Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 19 Aug 2022
0 answers
55 views

hi sir,

 

           i have dynamically creted a dountchart  radhtmlchart in code behind , now i want to wrap the text. I the data length is too large then the chart go smaller example is show below, otherwise is normal.

          I need solution ASAP

         the sample code:

Dim chart As New RadHtmlChart
        chart.ID = "chart"
             chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 75

        chart.PlotArea.XAxis.DataLabelsField = _ChartSeriesFieldTitlexaxis

        chart.PlotArea.Series.Clear()
        Dim series As New DonutSeries
        series.NameField = _ChartSeriesFieldTitlexaxis
        series.DataFieldY = _ChartDataFieldTitle
        chart.PlotArea.Series.Add(series)
        chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "d"
        chart.PlotArea.XAxis.BaseUnit = DateTimeBaseUnit.Days
        chart.PlotArea.XAxis.TitleAppearance.Text = _ChartSeriesFieldTitlexaxis
        chart.PlotArea.YAxis.TitleAppearance.Text = _ChartDataFieldTitle

        chart.DataSource = firstTable
        chart.DataBind()

 

 

        
M Kumar
Top achievements
Rank 1
Iron
Veteran
 asked on 07 Feb 2022
1 answer
105 views

Hi,

we display a RadChart and hook up to its Click() event. All works fine when we click on a chart segment. But if the chart has a legend, the legend is clickable (too) and if a user clicks it we get below error.

Is there a way to fix this? Can we make the legend non-clickable?

The version we use is 2020.2.617.45

Thanks

Michael

 

Serverfehler in der Anwendung /.

Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
Parametername: index

Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
Parametername: index

Quellfehler:
Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

Stapelüberwachung:
[ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
Parametername: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +69
   Telerik.Web.UI.RadChart.RaisePostBackEvent(String eventArg) +483
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9858668
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1696

 

Michael
Top achievements
Rank 1
Iron
 answered on 15 Nov 2021
0 answers
66 views

Hi Telerik Community,

I have a question which is a little difficult to explain, that is why I attached an image to make it more clear.
I have multiple data points, and each data point has a Pitch attribute associated with it, this Pitch measurement unit is Degrees.

Using the Telerik Chart framework, is it possible to plot each data point at its associated degree angle value and then plot the next data point in relation to the previous. Essentially what we need to do is visually show a profile that is mathematically accurate. I have been able to successfully and accurately achieve this on paper using a protractor but want to digitally achieve this using the Telerik Chart.

Each data point also has a depth value which needs to be shown visually in relation to its associated pitch data point, this will give us the ground elevation relative to the pitch data point.

Would appreciate some guidance on this.

Kind Regards.

 

n/a
Top achievements
Rank 1
 updated question on 12 May 2021
0 answers
1.4K+ views

Path traversal in all versions of RadChart for ASP.NET AJAX by Telerik allows a remote attacker to read and delete an image with extension ".BMP",".EXIF",".GIF",".ICON",".JPEG",".PNG",".TIFF", or ".WMF" on the server through a specially crafted request.

Versions prior to Q3 2012 may also be exposed to arbitrary files access within the web application, including the web.config.

To avoid the vulnerability you must remove its HTTP handler from your web.config (its type is Telerik.Web.UI.ChartHttpHandler), e.g.

REMOVE these lines from your web.config file:

<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />

and

<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />

Note: this will prevent the RadChart control from working in your app.

RadChart has been discontinued in 2014 in favor of RadHtmlChart. We advise that you migrate to RadHtmlChart:

Telerik would like to thank movrment from Infiniti Team - VinCSS (A member of Vingroup) for helping in making this information public.

External reference: CVE-2019-19790

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 13 Dec 2019
1 answer
124 views
I downloaded the latest ASP.NET Ajax controls last night and I'm trying to run a web project (asp.net 4.0) I inherited with an unknown version. I'm getting a run time error on this line:
 <telerik:ColumnSeries  Name="Current" Stacked="false" DataField="CurrPropValue1"   >

The 'DataField' property cannot be set declaratively.

This is on the RadHtmlChart control.
Danail Vasilev
Telerik team
 answered on 29 Jan 2015
1 answer
61 views
Hi Guys,

May I ask for your opinion if this graph is possible with telerik Bar Chart?
The one with erasures has texts on it that holds the Categories.

Thank you for your responses.
Danail Vasilev
Telerik team
 answered on 27 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?