Resize RadChart in RadDock

3 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 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. Joshua Grippo
    Joshua Grippo 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. Slav
    Admin
    Slav avatar
    1356 posts

    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