Results 1 to 3 of 3

Thread: GXT 3.0.1: setItemId() never seems to generate any markup

  1. #1
    Touch Premium Member
    Join Date
    Mar 2008
    Location
    Morgan Hill, CA
    Posts
    136
    Vote Rating
    3
      0  

    Default Unanswered: GXT 3.0.1: setItemId() never seems to generate any markup

    I have tried calling setItemId() on a TextField, and Dialog and a Grid.
    None of them create markup with "itemId" set to anything.

    setName() on a TextField will generate a "name" property set correctly.

    Is this a bug in GXT 3.0.1 or am I doing something wrong?
    I am verifying with Firebug while running in Developement Mode.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Answers
    109
    Vote Rating
    93
      0  

    Default

    What are you using this ID for? ItemID isn't an html attribute, is it?

    Code:
      /**
       * Sets the widget's item id. Unlike a widget's id, the widget's item id is
       * not tied to id attribute of the widget's root element. As such, the item id
       * does not have to be unique.
       * 
       * @param id the item id
       */
    This method is for providing a non-unique string id that can be used by containers like TabPanel or Container to locate children. This value defaults to the actual id of the root element, but doesn't have to be set to that.

    Try setId(String) instead?

  3. #3
    Touch Premium Member
    Join Date
    Mar 2008
    Location
    Morgan Hill, CA
    Posts
    136
    Vote Rating
    3
      0  

    Default

    Yea, I guess I didn't fully understand the use of itemID.

Posting Permissions

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