Is there a method to check the control of what is the xtype of the root control?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Is there a method to check the control of what is the xtype of the root control?

    I have a formPanel that has 4 controls and one of them is a _tab2BGrid.
    Which is called MainTabGrid and that extend to another control called GridPanelControl and that is extended from the grid panel control.
    I want to be able to check if my control has control of xtype grid.
    if (this._tab2BGrid.Contains(xtype.Grid)) {
                    check store and do other stuff.
    }

    This is how they extend to each other:
     Ext.define('App.Win.TabContainters.TabContainersMain', (function() {
    		var publicInterface = {
    			extend: 'Ext.form.FormPanel',
    			_tab1A: null,
    			_tab2BGrid: null,
    			_tab3C: null,
    			_tab4D: null, 
    
    
     Ext.define('ALA.Win.PiecesGrid', (function() {
    		var publicInterface = {
    			extend: 'App.Ext.GridPanelControl', 
    
     Ext.define('ALA.Ext.GridPanelControl', (function () {
    		var publicInterface = {
    			extend: 'Ext.grid.Panel',
    Last edited by juan; Apr 02, 2019 at 7:10 PM.

Similar Threads

  1. Custom Control overriding "XType"
    By edip in forum 4.x Help
    Replies: 0
    Last Post: Oct 02, 2018, 5:17 PM
  2. Replies: 1
    Last Post: Jan 26, 2015, 3:42 PM
  3. Replies: 1
    Last Post: Jul 25, 2011, 9:59 AM
  4. Replies: 8
    Last Post: Jan 25, 2011, 4:21 AM
  5. [CLOSED] Programmatically change root text in Treepanel control
    By ewgoforth in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 22, 2010, 11:07 PM

Tags for this Thread

Posting Permissions