[CLOSED] Panel Collapse Tool

  1. #1

    [CLOSED] Panel Collapse Tool

    Hello,

    In Ext.Net 1.x we can Add a Collapse Tool to a Panel and let it be resizable without showing a Small Splitter (Split=true, CollapseMode="Mini") (ScreenShot1.2), i can't see how to achieve the same behavior with Ext 2.x . (ScreenShot1.1)
    please advise.

    Thank you
    Attached Thumbnails Click image for larger version. 

Name:	ScreenShot1.2.png 
Views:	31 
Size:	20.9 KB 
ID:	12291   Click image for larger version. 

Name:	ScreenShot1.1.png 
Views:	25 
Size:	18.9 KB 
ID:	12281  
    Last edited by Daniil; Jun 08, 2014 at 7:29 AM. Reason: [CLOSED]
  2. #2
    Hi @snow_cap,

    Related to this Issue.
    https://github.com/extnet/Ext.NET/issues/287

    Instead of Split="true", please set
    <SplitterConfig Collapsible="false" />
    and add this override into the page's <head>:
    <script>
        Ext.resizer.Splitter.override({
            beforeRender: function () {
                var me = this,
                    target = me.getCollapseTarget();
    
                Ext.resizer.Splitter.superclass.beforeRender.apply(me, arguments);
    
                if (target.collapsed) {
                    me.addCls(me.collapsedClsInternal);
                }
                if (!me.canResize) {
                    me.addCls(me.baseCls + '-noresize');
                }
    
                Ext.applyIf(me.renderData, {
                    collapseDir: me.getCollapseDirection(),
                    collapsible: me.initialConfig.collapsible === false ? false : me.collapsible || target.collapsible
                });
    
                me.protoEl.unselectable();
            }
        });
    </script>
  3. #3
    Thank you, it's worked.

Similar Threads

  1. Replies: 4
    Last Post: Dec 27, 2012, 5:47 AM
  2. Replies: 0
    Last Post: May 03, 2011, 12:13 PM
  3. <ext:filter panel> missing in tool box
    By purvi in forum 1.x Help
    Replies: 2
    Last Post: Oct 05, 2010, 6:14 PM
  4. [CLOSED] [1.0] Panel Tool CustomType
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2010, 12:33 PM
  5. [CLOSED] Custom Panel Tool?
    By wazige in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 23, 2009, 11:01 AM

Posting Permissions