Is there a clientside equivalent of "DesignMode"

Posted by Community Admin on 05-Aug-2018 17:54

Is there a clientside equivalent of "DesignMode"

All Replies

Posted by Community Admin on 09-Jan-2011 00:00

Or should I just do a jquery selector on an element that would only exist in design mode?

Posted by Community Admin on 10-Jan-2011 00:00

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.

Posted by Community Admin on 16-Aug-2017 00:00

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 ?

This thread is closed