Resize RadChart in RadDock

Thread is closed for posting
3 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 16 Jul 2007 Link to this post

    Requirements

    RadControls version

    RadChart 3.1.2
    RadDock 1.8.2
    .NET version

    2.0
    Visual Studio version

    2005
    programming language

    C# / VB.NET, JavaScript
    browser support

    all browsers supported by RadControls


     
    PROJECT DESCRIPTION
    This project demonstrates how you could resize the RadChart image when it is wrapped inside a resizable RadDockableObject. All operations are performed on the client-side via JavaScript.

    As RadDock does not expose client-side events for resizing the dockable objects we need to customize (and overwrite) one of its intrinsic client-side methods namely RadDockNamespace.RadDock_ShowTooltip -- this method is responsible for displaying and updating the tooltip helper that shows the current width and height while resizing the dockable object. In this way we can get the correct width and height values to resize the chart to (the resizing itself is performed in the OnClientDrop event handler).
  2. D5EF8382-B83D-449B-BA2D-E6A50610DFAB
    D5EF8382-B83D-449B-BA2D-E6A50610DFAB avatar
    10 posts
    Member since:
    Nov 2009

    Posted 01 Sep 2011 Link to this post

    Is there an updated version of this that uses the newest controls?
  3. 82125995-D467-49DC-88FF-9544CC577B74
    82125995-D467-49DC-88FF-9544CC577B74 avatar
    1359 posts
    Member since:
    Jan 2017

    Posted 06 Sep 2011 Link to this post

    Hello Joshua,

    The provided sample project is still a fully runnable example of the described scenario. Nevertheless, I have prepared a project, which implements the functionality, utilizing the latest version of RadControls for ASP.NET AJAX, as you requested. Note that the resizing of the RadChart is achieved only by using the pageLoad client-side method. In addition to that, the RadDock control now has a client-side event OnClientResizeEnd that can help you resize additional elements in the dock.

    Regards,
    Slav
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.