Announcement

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

    TextField value disappears if input string starts with <

    You can see what I mean using this sample.

    http://www.smartclient.com/#editByRow

    Double-click the first row and put a left bracket character < at the beginning of United States and then click out of the row.

    #2
    If it's a legal character and shouldn't render as HTML, set escapeHTML for the field. Otherwise define a validator (probably regexp) to disallow it.

    Comment


      #3
      I don't set any API for setEscapeHTML() or similar. Should this work? ListGridField.setAttribute("escapeHTML", true);

      Comment


        #4
        We just double checked and listGridField.setEscapeHTML(Boolean escapeHTML) is there. Can you verify that you're really not seeing it?

        Comment


          #5
          Sorry, it's there. I was looking at DataSourceField.

          Comment


            #6
            Actually this thread has prompted us to also add it at the DataSourceField level - will show up there in the next build.

            Comment


              #7
              Hi Isomorphic,

              I had the same problem as jay.l.fisher.
              In the meantime "escapeHTML" is evaluated when set at field-level in .ds.xml.
              It it not included in http://www.smartclient.com/smartgwte...urceField.html, though.

              Could you please tell me if the use there is not allowed (as for "width") or if its just missing in the docs?

              Thank you,
              Blama

              Comment


                #8
                It's allowed on DataSourceField - note it appears under the non-serverds DataSourceField docs - we've fixed it so it will appear under both in the future.

                Comment

                Working...
                X