Dynamically adjust width of Dunda chart RRS feed

  • Question

  • User1663268793 posted

    How can we dynamically adjust the width of dunda bar chart dependign upon the number of items on X-Axis? 

    Tuesday, March 23, 2010 1:39 AM

All replies

  • User-2133570912 posted

    give ur bar an id and runat="server" tag...so that it's accessible in the code behind...

    now...suppose id is "bar"...then u can do this...


    or say

    bar.Style.Add("Width","Auto"); //it shud wrk as per ur objective....

    //this codes shows how dynamically u can control style attributes of any HtmlControl (i.e. controls like divs,

     spans, asp contrls etc on designer)....

    don't forget to "mark as an answer" if ur problem is resolved due to this......

    Wednesday, March 24, 2010 12:05 PM