Find a control as a content of panel

Page 2 of 2 FirstFirst 12
  1. #11
    Hmmm... Its hard to explan to you.
    Just on our project, we use bootstrap to layout our control.
    If it cant, thank you for your help. You can mark this thread closed.
    Thank you again!
  2. #12
    You can manually traverse DOM objects. The id of a top DOM object of an Ext.NET component matches that component's id. So, you can do:
    Ext.getCmp(dom.id)
    You can look at the AbstractComponent's destroyFromDom function to understand better what I mean.
  3. #13
    Hi Daniil,
    My purpose is find all textfield (or other ext control) in the panel, not a single textfield (i don not even know control's ID).
    I want my result is an array as when i use ComponentQuery.
    Seem like it's impossible. Anyway, thank you for your help!
  4. #14
    It looks you don't hear me:)

    Quote Originally Posted by vietdv View Post
    (i don not even know control's ID).
    You don't need to know them with the traversing of DOM approach.

    Quote Originally Posted by vietdv View Post
    I want my result is an array as when i use ComponentQuery.
    Seem like it's impossible.
    Exactly, it is not possible with a ComponentQuery if you use <Content>, but it is possible with another approach that I told about.
  5. #15
    Hello Daniil,
    Thank you for fast reply.
    Quote Originally Posted by Daniil View Post
    It looks you don't hear me:)

    You don't need to know them with the traversing of DOM approach.
    Thank for your suggession, i'll give it a try with DOM objects, but seem like it have some complex :)
  6. #16
    If you follow this recommendation
    Quote Originally Posted by Daniil View Post
    You can look at the AbstractComponent's destroyFromDom function to understand better what I mean.
    you'll see that it is not that difficult.
  7. #17
    Could you please send me a link about AbstractComponent's destroyFromDom function. I find at extjs document but it say that class is private utility and it has no destroyFromDom function :)
  8. #18
    This function is defined in Ext.NET, not in ExtJS.

    1. Set ScriptMode="Debug" or ScriptMode="Development" for a ResourceManager

    2. Open the page in a browser

    3. See Page Sources

    4. Open "extnet-all-debug.js"

    5. Search for "destroyFromDom"
  9. #19
    I got it, Thank you for your help :D
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: Aug 30, 2013, 2:49 PM
  2. Replies: 0
    Last Post: Nov 28, 2012, 8:08 AM
  3. Dynamically Render user control into panel content section
    By ITECH-Developer in forum 2.x Help
    Replies: 1
    Last Post: Oct 08, 2012, 8:11 AM
  4. how find dynamic control
    By maxdiable in forum 1.x Help
    Replies: 0
    Last Post: Feb 18, 2012, 8:12 PM
  5. [CLOSED] find control
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 12, 2011, 6:29 PM

Posting Permissions