Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > General and Integration Projects > Resize RadChart in RadDock

Resize RadChart in RadDock

Feed from this thread
  • Posted on Jul 16, 2007 (permalink)

    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).

    Reply

  • Joshua Grippo avatar

    Posted on Sep 1, 2011 (permalink)

    Is there an updated version of this that uses the newest controls?

    Reply

  • Slav Slav admin's avatar

    Posted on Sep 6, 2011 (permalink)

    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.

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > General and Integration Projects > Resize RadChart in RadDock