MagicControlHandler - replacement for AJAX Toolkit ResizableControlExtender and DragPanelExtender
MagicControlHandler is a JavaScript based tool to enable resizing and moving
for almost any HTML control.
An example uses ASP.NET AJAX UpdatePanel because this needs some special
handling. All you really need is:
- HTML page with some elements
- <script src="MagicControlHandler.js"
type="text/javascript"></script> between <head>...</head> tags
- <link href="MagicControlHandler.css"
rel="stylesheet" type="text/css" /> between <head>...</head> tags
- <input runat="server" id="MagicControl"
type="hidden" /> between <form>...</form> tags
- add class atribute to html element with one of the following value:
- MagicControlWidth
- MagicControlHeight
- MagicControlSize
- MagicControlWidthScroll
- MagicControlHeightScroll
- MagicControlSizeScroll
- MagicControlMove
- MagicControlAll
- MagicControlAllScroll
- Implement server-side code for preserving the value from
MagicControl hidden element.
Preview an example