All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<telerik:RadImageEditor ID="theImageEditor" runat="server" ImageUrl="~/content/damage.jpg" OnClientCommandExecuted="modifyCommand"></telerik:RadImageEditor> </form> <script type="text/javascript"> function modifyCommand(imageEditor, args) { waitForCommand(imageEditor, args.get_commandName(), function (widget) { widget._constraintBtn.set_checked(false); //stop the aspect ration constraint widget.set_width(100); widget.set_height(100); widget._updateCropBoxFromControls(); }); } function waitForCommand(imageEditor, commandName, callback) { var timer = setInterval(function () { var widget = imageEditor.get_currentToolWidget(); if (widget && widget.get_name() == commandName) { clearInterval(timer); callback(widget); } }, 100); } </script>
<telerik:RadImageEditor ID=
"theImageEditor"
runat=
"server"
ImageUrl=
"~/content/damage.jpg"
OnClientCommandExecuted=
"modifyCommand"
></telerik:RadImageEditor>
</form>
<script type=
"text/javascript"
>
function
modifyCommand(imageEditor, args) {
waitForCommand(imageEditor, args.get_commandName(),
(widget) {
widget._constraintBtn.set_checked(
false
);
//stop the aspect ration constraint
widget.set_width(100);
widget.set_height(100);
widget._updateCropBoxFromControls();
});
}
waitForCommand(imageEditor, commandName, callback) {
var
timer = setInterval(
() {
widget = imageEditor.get_currentToolWidget();
if
(widget && widget.get_name() == commandName) {
clearInterval(timer);
callback(widget);
}, 100);
</script>
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.