Results 1 to 3 of 3

Thread: Is component based on class x?

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    365

    Default Is component based on class x?

    Hello!

    I need to know if a component is based on grid or editorgrid. The problem is that the component could as well be devired from grid or editorgrid. Is there a way to tell if a component is based on grid or on editorgrid?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Code:
    comp instanceof Ext.grid.GridPanel
    or
    Code:
    comp.isXType('grid')

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    365

    Default

    Thanks a lot, works greate!

Similar Threads

  1. Ext Gwt Component Class style "x-component"
    By ksarmalkar in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 7 Apr 2010, 1:35 AM
  2. Autoload on window component in webkit based browsers
    By Julio Betta in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 24 Jul 2009, 4:14 PM
  3. Building a custom Grid Class based on defaultDataModel (Log)
    By Wolfgang in forum Community Discussion
    Replies: 0
    Last Post: 13 Jan 2007, 9:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •