More in this section
Forums / Sitefinity SDK / Is there a clientside equivalent of "DesignMode"

Is there a clientside equivalent of "DesignMode"

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    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
    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
    15 Feb 2016
    16 Aug 2017
    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