Overide Default dialog settings

4 posts, 1 answers
  1. Joseph Roberts
    Joseph Roberts avatar
    47 posts
    Member since:
    Jul 2004

    Posted 21 Jul 2011 Link to this post

    Is there a way to override default dialog settings, like the crop's height and width, so that I can force a particular height and width from the start?

    Thanks,
    Joe
  2. Kevin Donahue
    Kevin Donahue avatar
    33 posts
    Member since:
    Oct 2009

    Posted 22 Jul 2011 Link to this post

    I would like this as well. 

    From playing around, I sort of made it work from a separate button.  I launch the Crop dialog when the window loads, however the _currentToolWidget is null right after I run executeCommand.  It must take some time to load, because when I access that property later, after a button is clicked, it now has a value.  Using this widget object, you can change the width and height used for cropping.  You must be able to do this all in one action, maybe using timers?  It would be nice if there was a WidgetLoaded event. Anyway, hope this gets you in the right direction:

    var g_strEditor = 'RadImageEditor1';

    function pageLoad(sender, eventArgs) {
        var objIE = $find(g_strEditor);
        objIE.executeCommand('Crop');
    }

    function ButtonClick() {
      //Need the widget to be loaded before we can access it and change the crop settings
        var objIE = $find(g_strEditor);
        var objWid = objIE._currentToolWidget;
        objWid._constraintBtn.set_checked(false);
        objWid.set_height(100);
        objWid.set_width(300);
    }
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 22 Jul 2011 Link to this post

    Hi,

    The requested customization is currently not supported. We will try to provide it for the next Q2 2011 SP1 release. Here you can find the PITS Issue that I created for your feature request: Public URL.

    All the best,
    Rumen
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. Joseph Roberts
    Joseph Roberts avatar
    47 posts
    Member since:
    Jul 2004

    Posted 22 Jul 2011 Link to this post

    Great.  Thanks.
Back to Top