[FIXED] [#776] [3.2.0] TabPanel Items are banned when it is disabled and then enabled

  1. #1

    [FIXED] [#776] [3.2.0] TabPanel Items are banned when it is disabled and then enabled

    I am new to ext.net MVC. I am building ext.net MVCproject I have a TabPanel that should be disabled then enabled again the problem is that after the TabPanel is enabled its items are banned. Any solution please?
    Last edited by Daniil; Jun 23, 2015 at 1:43 PM. Reason: [FIXED] [#776] [3.2.0]
  2. #2
    Hi @bobzz,

    Welcome to the Ext.NET forums!

    Please provide a test case to reproduce the problem.
  3. #3

    TabPanel Items are dimmed when it is disabled and then enabled

    Main.cshtml

    !DOCTYPE html>
    
    <html>
    <head>
    
    
    
        <meta name="viewport" content="width=device-width" />
        <title>Main</title>
        
        <script type="text/javascript">
    
    function drawSnapshots() {
    for (var i = 0; i < snapshotIDs.length; i++) {
                    var pid = "panel" + i;
                    var panel = Ext.create('Ext.panel.Panel', {
                        title: snapshotTitles[i],
                        id: pid,
                        height: 500,
                        flex: 1,
                        layout: 'fit',
                        loader: {
                            url: '@(Url.Action("Loader"))',
                            renderer: "frame",
                            mode: 'frame',
                            loadMask: { showMask: true },
                            params: { snapshotindex: i , sfields:fields[i] ,scol:colnames[i],filterf:FilterType[i],vs:visiblefields[i],filtervs:filterofVisible[i]},
                            autoload: true,
                        }
                    });
    
                    App.MainTab.add(panel);
                }
                
    }
    
     function TabChanged()
            {
    
               App.MainTab.disable();
    
            }
    </script>
    </head>
    
    <body>
    
            @(Html.X().ResourceManager()
                                  .Listeners(li =>
                                  {
                                      li.DocumentReady.Handler = "drawSnapshots()";
                                  })
    
            )
    
    
     @(Html.X().TabPanel()
                .ID("MainTab")
                .RenderTo("Ext.getBody()")
                .Border(false)
                .Plugins(Html.X().TabScrollerMenu().PageSize(10))
                .Title("Tasks")
                .TitleAlign(Ext.Net.TitleAlign.Right)
                .TabAlign(Ext.Net.TabAlign.Right)
                                .Listeners(li => { li.TabChange.Handler = "TabChanged()"; })
    )
    
    </body>
    </html>
    in the child page which is the loader of each panel in the tab: Grid.cshtml

    <!DOCTYPE html>
    
    <html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>Grid</title>
    <script>
    function enableMainTab()
    {
    parent.App.MainTab.enable();   // Here is the problem when the MainTab is enabled its items (panels) are dimmed.
    }
    
    </script>
    </head>
    <body>
        @(Html.X().ResourceManager().Listeners(li => { li.DocumentReady.Handler = "enableMainTab()"; }))
    
    </body>
    </html>
    this case only using MVC
  4. #4
    Thank you.

    Please clarify what Ext.NET version are you using?

    You posted the question in the 1.x Help forum, but I tend to thing you use either 2.x or 3.x.
  5. #5

    Please clarify what Ext.NET version are you using?

    Sorry, yes I am using 3.x
  6. #6
    Thank you for the report! Created an Issue:
    https://github.com/extnet/Ext.NET/issues/776

    It should be fixed in ExtJS already.
    http://www.sencha.com/forum/showthread.php?295910

    So, it is going to come to Ext.NET with the next ExtJS upgrade.

    There is a possible solution suggested in the Sencha forum thread.
  7. #7
    Problem Solved...
    I just Added the MaskOnDisable(false) property to the TabPanel
    Thank you you can mark it as closed
    Last edited by Daniil; Apr 08, 2015 at 9:15 AM.
  8. #8
    The issue has been fixed in SVN trunk. It will go to the upcoming Ext.NET 3.2.0 release.

Similar Threads

  1. Replies: 2
    Last Post: Aug 28, 2012, 10:26 AM
  2. Check if control is enabled or disabled
    By AlexMaslakov in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2011, 11:19 AM
  3. Replies: 4
    Last Post: Jun 30, 2011, 6:25 PM
  4. [CLOSED] [1.0] - Toolbar Button looks enabled when Disabled = true
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 01, 2010, 5:36 PM
  5. [CLOSED] Disabled Checkbox is always false and shows enabled true.
    By Sharon in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 12, 2009, 4:10 AM

Tags for this Thread

Posting Permissions