1. #1
    Touch Premium Member
    Join Date
    Mar 2008
    Location
    Morgan Hill, CA
    Posts
    126
    Vote Rating
    3
    margozzi is on a distinguished road

      0  

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

    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,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      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
    126
    Vote Rating
    3
    margozzi is on a distinguished road

      0  

    Default


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

Thread Participants: 1