More in this section

Forums / Sitefinity SDK / Is there a clientside equivalent of "DesignMode"

Is there a clientside equivalent of "DesignMode"

3 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    09 Jan 2011
    Link to this post
    Or should I just do a jquery selector on an element that would only exist in design mode?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Jan 2011
    Link to this post
    Hi Steve,

    You can send the value through GetScriptDescriptors()

    descriptor.AddProperty("isDesignMode", this.isDesignMode);

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Mihail
    Mihail avatar
    0 posts
    Registered:
    15 Feb 2016
    16 Aug
    Link to this post

    What about in MVC widget ?

    I have reference in the .cshtml to my JS like @Html.Script("/Mvc/Scripts/MyScript.js")

    Then how in this script to determine whether I am in design mode - without make query selectors over the DOM in the HTML?

    Is there something like Sys.IsInDesingMode ?

3 posts, 0 answered