Announcement

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

    Controlling field widths in FilterBuilder

    I have not been able to manually override the default field widths in the FilterBuilder. So far, I have tried setting the 'length' attribute on the fields in the associated DataSource to no avail.

    Any thoughts?

    -paul

    #2
    Hi Paul,

    Use an override of FilterBuilder.getValueFieldProperties, eg, starting from this example, this code would reduce the width of the "countryCode" field:

    Code:
    isc.FilterBuilder.create({
        ID:"advancedFilter",
        dataSource:"worldDS",
        getValueFieldProperties : function (fieldType, fieldName) {
           if (fieldName == "countryCode") return { width: 50 };
        }
    });

    Comment


      #3
      Thanks
      -paul

      Comment

      Working...
      X