Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    pickTree

    Hi,

    In a DynamicForm one of the formItem is pickTree .......

    editorType: "pickTree"

    This item is using a dataSource to get values.
    I get the default selected value as "Choose a value".. Can I change this text to some other text ? how ?

    I am using SmartClient 7.0 rc2 open source version

    Thanks in Advance

    Dev

    #2
    setDefaultValue()

    Comment


      #3
      Not sure how to do that in SmartGWT, but in SmartClient it looks like:
      Code:
      fields: [
        { type: "ipicktree", buttonProperties: { unselectedTitle: "Choose" } }
      ]

      Comment


        #4
        I think in 2.2 for SmartGWT there is just the PickTreeItem not the IPickTree like before, and looking at the code, I don't see the 'unselectedTitle', but could try setAttribute("unselectedTitle", "Choose", true); to test and see, otherwise the default value worked for me in the showcase example.

        Comment


          #5
          @svjard and @marpetr

          first of all thanks to both of u.

          not sure how to use setDefaultValue(). it didn't worked for me.
          though buttonProperties: { unselectedTitle: "Choose" } worked perfect
          thanks again

          smartGWT forum is really active. i wish smartClient forums also become active :)

          Comment

          Working...
          X