TreeGrid and formatCellValue in 5.7.x

I have a TreeGrid bound to a datasource. On the tree field (the first field in my datasource), I have a need to manipulate the displayed value. In a ListGrid, I would do this using formatCellValue. In 5.6 of SmartClient, my code for my TreeGrid using formatCellValue worked. After upgrading to 5.7/5.7.1, formatCellValue appears to no longer be called for TreeGrids. Is there an alternate method for me to get this same functionality in a TreeGrid under 5.7.x?

Also, I will likely need this same functionality under 6.0 in the near future.

  • david

Hi David
We’re not seeing this issue - in fact the “Node titles” example in the SDK Feature explorer (under Trees > Appearance > Node Titles) demonstrates a formatCellValue implementation for a TreeGrid field and seems to be working fine in both the 5.71 and 6.0 package.

Would you be able to post the code that is hitting this problem so we can run it on our end and see what’s happening?

Thanks
Isomorphic Software

Please see issue 1957 for a code sample.

  • david

Just for everyone’s benefit - this came from specifying formatCellValue and other ListGrid/TreeGrid field-specific properties on DataSource fields rather than on treeGrid.fields.

While this often works, the documented and supported approach is to set these properties on the component fields themselves. Over time, we do plan to make more of these properties officially settable on DataSource fields and/or controllable via the SimpleType interface.