Setting Width and Height Properties

3 posts, 0 answers
  1. Himanshukumar
    Himanshukumar avatar
    3 posts
    Member since:
    Mar 2014

    Posted 04 May 2014 Link to this post

    Hi,

    I am trying to set the width and height of the HTMLcharts via a % rather than pixels as it is more adaptable, however when I do this the charts are shrinked - is there a way to do this even if I place them in a parent DIV and set that to % width?

    Thanks,

    Using v2014.1.225.40
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 May 2014 in reply to Himanshukumar Link to this post

    Hi Himanshukumar,

    Please try the following CSS which works fine at my end.

    ASPX:
    <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" CssClass="ChartStyle">
    ...
    </telerik:RadHtmlChart>

    CSS:
    .ChartStyle
    {
        width: 40% !important;
        height: 100% !important;
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Himanshukumar
    Himanshukumar avatar
    3 posts
    Member since:
    Mar 2014

    Posted 05 May 2014 in reply to Shinu Link to this post

    Thanks Shinu, that worked great!
Back to Top