floating data issue

4 posts, 1 answers
  1. Maxime
    Maxime avatar
    37 posts
    Member since:
    May 2012

    Posted 06 Jul 2012 Link to this post

    Hello everyone,

    I want to partially generate an HTMLchart in codebehind.
    Here is what i got :

    ASPX :
    <telerik:RadHtmlChart ID="CHT_samples" runat="server">
    </telerik:RadHtmlChart>

    in my .CS file :
    AxisItem o_xItem = new AxisItem();
    i_gridLines =9;
    for (i_incrementA = 0; i_incrementA < i_gridLines; i_incrementA++)
    {
           // Add the mold number as the X label
           o_xItem = new AxisItem();
           o_xItem.LabelText = "#" + o_sampling.LST_MOLDS[i_incrementA].NUM;
           CHT_SAMPLESCHART.PlotArea.XAxis.Items.Add(o_xItem);
    }

    This is working perfectly, i get the labels on my chart.
    But when i create a serie and decide to add data ...

    LineSeries o_xMax = new LineSeries();   
    o_xMax.Name = "Max";
     
    CHT_SAMPLESCHART.PlotArea.Series.Add(o_xMax);
    CHT_SAMPLESCHART.PlotArea.Series[0].Items.Add(16.85m);

    I get 2 points on my chart : one for "16" and the other for "85".
    Is this a bug or am i doing it wrong ? Or both ? :p

    Many thanks.
    Framework 4.0 - WS2008R2 - VS2010

    EDIT :
    http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/staticitems/defaultcs.aspx
    This is the same when i try to reproduce your static example :(
  2. Maxime
    Maxime avatar
    37 posts
    Member since:
    May 2012

    Posted 10 Jul 2012 Link to this post

    It seems to happen when i change my firefox culture setting to fr-FR. with en-US, works fine ...
    My application will use several ressources files, how can we handle this situation ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 11 Jul 2012 Link to this post

    Hello Maxime,

    There is a problem in the data serialization under certain cultures that have a comma for the decimal sign. The issue is currently being investigated, although I cannot provide a firm estimate when a fix will be available. You can use the PITS item of this issue to track its status.

    For the time being you can avoid this behavior if you force a particular culture that uses an appropriate decimal sign, for example en-US.

    Feel free to contact us again if you run into more difficulties.

    Regards,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 11 Jul 2012 Link to this post

    Hi Maxime,

    Excuse me for misleading you, the problem that I described in the previous post is fixed and the solution is included in the latest internal build of RadControls for ASP.NET AJAX. You can download it via this link and you can use it to resolve the issue.

    Regards,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top