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

I have a RadHtmlChart in an ASP.NET application to show a pie chart that has stopped working for some reason, it just shows a blank space instead of where the chart is supposed to be. I think that it may have been a result of updating from Telerik 2019 to 2021, but I don't know for sure.

I see an error in the console log like this that I think may be related:

Uncaught SyntaxError: '' string literal contains an unescaped line break
    _getMainConfig https://mydomain/ScriptResource.axd?d=tbtXkupOsJbh23R1_Hx7q2pZp3JxD5nSFapGUZ3sqXMSswV2X1Q2E1yGmyRwIn4zcz_FaG3pZ673Wbd7B-S8wD0iEyTbmgkuVT3xUNxMNje2tXgtmPHlNMU2UCqG2qcKV9OzjA2&t=244d15ab:97

 

At first I thought it was a bad label or something but even stubbing out all the labels doesn't seem to fix it, so I don't know.

 

Vessy
Telerik team
 answered on 03 Feb 2022
1 answer
79 views

This is probably a long shot but I thought it was worth asking.

Users can choose an appointment date and time range for when an engineer will turn up. For example, 19th January 2022 between 10am and 4pm. I am displaying the appointments in a grid but I want to replace the words "between 10am and 4pm" or "10am-4pm" with a graphic. I am looking for a simple clock image which I can set from code behind with, for example, startime=1000 | endtime=1600 and see a little circle with a clock face with a "pie slice" shaded in to represent the period between 10am and 4pm.

I am not looking for a time picker (that's already done in the Edit Form) - I need a way of displaying a little visual indicator like a clock face / pie chart type of graphic with a shaded area showing the user a range such as 10am-4pm, 2pm-4pm, 8am-1pm etc. The time range will never be 12 hours or more but if this ever happened I could replace the clock display with my standard text label.

Does anyone know if this is possible with anything in the UI For ASP.NET AJAX suite or if an existing control could be repurposed with clever styling (a chart type maybe?) or a third party component (if I must). Requirements are I need to set the time range using a function called at run time from data binding or itemdatabound in code behind.

I can't believe no-one has needed this before but I can't find anything online (unless I'm not using the correct term for the type of control I need).

Any help would be really appreciated.

Thanks

Nick

Doncho
Telerik team
 answered on 24 Jan 2022
1 answer
87 views

Hello Guys,

I have inside a panel, multiple radhtmlchart that i want to print into new blank page. Can someone help me?

Vessy
Telerik team
 answered on 29 Sep 2021
1 answer
142 views

I have figured out how to hide a series by the index but I am not guaranteed the index will always be the same for each series, how can I hide/show series by name client side?

This hides by index:

var chart = $find("<%= myChart.ClientID %>");
var kendoChart = chart.get_kendoWidget();

kendoChart.options.series[1].visible = false;

I have tried to figure out how to get the index from below but have not been successful:

kendoChart.findSeriesByName("mySeriesName");

Vessy
Telerik team
 answered on 26 Aug 2021
2 answers
228 views

Hi there,

we are trying to implement the drill down for the bar chart and pie chart. 

I need help to achieve this we are generating the chart in a completely dynamic way we don't have any code related to rad control on the Aspx page. 

please help me if anyone has samples.

Vessy
Telerik team
 answered on 04 Aug 2021
0 answers
99 views

Hello,

I have a problem with RadHtmlChart export to base64:

With UI for ASP.NET AJAX R3 2017, I generate my chart on a div with a "display : none" and after, on JS, I take the value (base64) of this graph and I can generate my image:

But with UI for ASP.NET AJAX R1 2021, if I generate my chart on this div, the chart doesn't take full size of the canvas and when I generate the image, the chart wasn't in full screen:

Do you have an idea why my canvas don't take the full size?

Ludovic
Top achievements
Rank 1
Iron
 asked on 19 Jul 2021
1 answer
214 views

Hi there,

              I have used your example code to be able to export a chart to PDF

<script>
     function exportChartToPDF() {
         var $ = $telerik.$;
         $get('<%=RadClientExportManager1.ClientID%>').exportPDF($(".RadHtmlChart"));
     }
     function exportChartToImage() {
         var $ = $telerik.$;
         $find('<%=RadClientExportManager1.ClientID%>').exportImage($(".RadHtmlChart"));
     }
</script>

I have this triggered by a button and it is working, but I need to be able to export a specific RadHTMLchart.

I have limited knowledge of this in page scripting.

 

the supplied function finds the first instance of the type requested, is there a way to find a specific control?

Please excuse my lack of understanding, I am finding my feet with this stuff.

Thanks.

Vessy
Telerik team
 answered on 09 Jul 2021
1 answer
138 views

Hi,

How do I specify what I want to be the tootip for an unbound RadHTMLChart in code (VB)?
the code works but shows the Y value (tDays) in the tootip, I need it to show the Name field (Dept)

 

see code below:

                    Dim DeptSum = (From d In EmpData Group d By Dept = d.Department Into Group
                                   Select Dept, tDays = Group.Sum(Function(d) d.Days)).ToList

                    Dim PieChartDays As New PieSeries
                    Dim PieSlice As PieSeriesItem

                        For Each DP In DeptSum
                            PieSlice = New PieSeriesItem
                            PieSlice.Name = DP.Dept
                            PieSlice.Y = DP.Tdays
                            PieChartDays.SeriesItems.Add(PieSlice)
                        Next

Vessy
Telerik team
 answered on 12 May 2021
1 answer
154 views

Hi.

I'm using TooltipsAppearance.ClientTemplate. It's working fine but it's inheriting the standard tooltip appearance and my template appears inside it.

Please refer to the attached image.

An example of what the tooltip should look like is also in the image. You will also notice the text in the bottom half of the tooltip is not showing. It is actually there but the text color is white so you can't see it. 

What am I doing wrong?

Thanks.

Peter Milchev
Telerik team
 answered on 04 May 2021
2 answers
85 views

Hi.

I'm used to working with DevExpress controls. When I use the Configuration Wizard I simple drag and drop the columns from my data source (SQL) and everything just lights up. 

In the Telerik RadHTMLChart Configuration Wizard, even though I've connected to a SQLDataSource and data is coming through fine, I still have to type the column names in the wizard.

And I still haven't figured out how to do this for stacked column chart.

Am I missing something? Is there another tool I should be using for this? I should be able to create a sqldatasource based stacked column chart in about 10 seconds!

Thanks.

Vessy
Telerik team
 answered on 29 Apr 2021
Narrow your results
Selected tags
Tags
+123 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?