Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30th Jun 2009, 12:02
pferraiolo pferraiolo is offline
Registered Developer
 
Join Date: Mar 2009
Posts: 38
Default 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
Reply With Quote
  #2  
Old 6th Jul 2009, 18:20
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,548
Default

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 };
    }
});
Reply With Quote
  #3  
Old 7th Jul 2009, 07:47
pferraiolo pferraiolo is offline
Registered Developer
 
Join Date: Mar 2009
Posts: 38
Default

Thanks
-paul
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved