Hi I’m using the dbtreeview bean of 5.2.4 with this method:
elements.db_treeview.removeAllRoots()
var _binding = elements.db_treeview.createBinding('directmanager', 'categories');
_binding.setFontTypeDataprovider('fontprov')
_binding.setImageURLDataprovider('icon');
_binding.setNRelationName("categories_to_categories_groups");
_binding.setTextDataprovider("category_name");
var _binding2 = elements.db_treeview.createBinding('directmanager', 'categories_groups');
_binding2.setImageURLDataprovider("icon"); //Replace X with the name of a dataprovider that returns a URL that points to an Image
_binding2.setTextDataprovider("categories_group_name"); //Replace X with the name of a dataprovider that returns the text for the node
controller.loadAllRecords
elements.db_treeview.addRoots(foundset);
elements.db_treeview.setNodeLevelVisible(1, true)
elements.db_treeview.refresh()
in the first binding I use a dataprovider (non stored calc: TEXT) :
function fontprov()
{
return 'Tahoma,1,13'
}
but what ever I do, everything works fine, except the: _binding.setFontTypeDataprovider(‘fontprov’)
the font is not applied, what am i doing wrong??[attachment=0]Schermafbeelding 2011-01-19 om 16.35.36.png[/attachment]
the current version of the bean, wrongly escapes the html text of the node in the webclient,
those not behaving the same as on smart client; this is fixed in the next release
regards
Harjo:
Gabi, thanks for pointing that out. totally missed that.
Is there somewhere on the whislist to set the font coloring per binding?
so something like:
_binding.setFontColor('#00ff00')
or
_binding.setFontColorDataprovider('dataprovider')
I know we can do this by using html in smart client, but this totally breaks in webclient!