This project is read-only.

Determing which mode (Organize, Normal) from ContentItem

Topics: Developer Forum, Project Management Forum, User Forum
Oct 19, 2008 at 4:11 AM
I have a content item that I want to do different things with depending on if I am in organize mode or not.

Is there a way to tell? IsInEditMode?
Oct 19, 2008 at 10:05 AM
You can use this:

using N2.Web.UI.WebControls;

if(ControlPanel.GetState() == ControlPanelState.DragDrop)

Oct 23, 2008 at 1:07 AM
I'm using the code from your template site.

        <n2:SlidingCurtain ID="sc" runat="server">
            <n2:DragDropControlPanel ID="cp" runat="server">

                    <script type="text/javascript">
                    if( != window &&{


There is no GetState() for DradDropControlPanel

How do I get state?
Oct 23, 2008 at 7:06 AM
It's a static method. Just write N2.Web.UI.WebControls.ControlPanel.GetState()