General chart layout

2 posts, 0 answers
  1. Michael
    Michael avatar
    10 posts
    Member since:
    Dec 2012

    Posted 26 May 2020 Link to this post

    This is really for anyone that is using the chart controls and not just the admins. I have the controls working as expected, but I cannot come up with a suitable layout that I like and still works when the form is maximized. By "work" I mean still looking acceptable. For example, when the form is a fixed size, my layout looks fine but when I go full screen on a 34" monitor, there's a ton of unused space and the form looks like a hot mess.

    What do folks do in this scenario? I don't have enough charts to fill up that much real estate and if I did, they surely wouldn't fit on a smaller form. Also, I probably wouldn't want to fill up a large monitor with that many charts. 

    Are dev's giving the user the ability to build their own dashboards PowerBI style? 

    For now I think I'm going to make my form a fixed width and keep moving forward. I will have to circle back to the layout challenges later.

    Just curious to know what folks do when they hit this. 

    Thanks,

    Michael. 

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4086 posts

    Posted 27 May 2020 Link to this post

    Hello, Michael,

    If I understand your requirement correctly, you need to adjust the chart's size when the form is resized. Thus, you will eliminate the empty space that may occur when the form is maximized but RadChartView remains with its initial size. For this purpose it is suitable to use either the Anchor property or the Dock property.  The main benefit here is that the controls do not have specific location and size. This way when the form is resized the controls will fit in the available space. I would recommend you to have a look at the following MSDN articles which give more information about anchoring and docking controls on the form.

    https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-anchor-controls-on-windows-forms 

    https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-dock-controls-on-windows-forms 

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top