[CLOSED] Portlet Resizable=false not working in ext.net 3.2

  1. #1

    [CLOSED] Portlet Resizable=false not working in ext.net 3.2

    Hi

    This is the example of the Portal Simple in mvc2 examples - http://mvc2.ext.net/#/Portal/Simple/ and this is the same in mvc3 examples - http://mvc.ext.net/#/Portal/Simple/

    If you notice in the 2.0 you can NOT resize the portlets which the behavior I expect. In the new 3.2 examples it is resizable by default.

    @functions 
    {
        private void InitPortlet(Portlet portlet) 
        {
            portlet.Html = "={text}";
            portlet.BodyPadding = 5;
            portlet.CloseAction = CloseAction.Hide;
             
            // ADDED THIS but it does not work - the following 3 settings do not take
            portlet.Resizable = false;
            portlet.Reorderable = false;
            portlet.Draggable = false;
    
    
            
            portlet.DirectEvents.Hide.Action =  "PortletHide";
            portlet.DirectEvents.Hide.EventMask.ShowMask = true;
            portlet.DirectEvents.Hide.EventMask.Msg = "Saving...";
            portlet.DirectEvents.Hide.EventMask.MinDelay = 500;
    
            portlet.DirectEvents.Hide.ExtraParams.Add(new { id = portlet.ClientID });
        }
    }
    What is the proper way to disable resizing the portlets and prevent them from being moved.

    thanks you
    idrissb
    Last edited by fabricio.murta; Jul 27, 2015 at 1:35 AM. Reason: [CLOSED]
  2. #2
    Hello @idrissb!

    I've added the two lines instead and seemed to disable both that south-handled resize and dragging as well:

            portlet.ResizeHandlesSummary = "none";
            portlet.Draggable = false;
    In the same place you changed. Does it work for you?

    I didn't use the .Resizable and .Reorderable you did.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    That works for me as well. Thank you. Please mark as closed.

Similar Threads

  1. e.Success = False not working.
    By Lisseth in forum 1.x Help
    Replies: 2
    Last Post: May 18, 2015, 4:50 PM
  2. Replies: 1
    Last Post: Oct 21, 2014, 3:37 PM
  3. Replies: 0
    Last Post: Aug 21, 2011, 12:19 PM
  4. Replies: 6
    Last Post: Jun 09, 2010, 9:26 PM
  5. Replies: 2
    Last Post: Mar 29, 2009, 3:20 PM

Posting Permissions