Had a few interesting queries come up:
Question -> "I am trying to develop a small project as a proof of concept before buying your software. One of the mandatory feature we need is the Full Lazy load, and right now I have a lot of problems making it work using the JavaScript API only. Would you have working examples like on your demo page, but using exclusively the JavaScript API ?"
Answer -> Basically if you review the following links:
http://htmltreegrid.com/newdocs/html/Flexicious%20HTMLTreeGrid.html?ConfigurationXMLvsAPI.html
http://htmltreegrid.com/newdocs/html/Flexicious%20HTMLTreeGrid.html?XMLConfiguration.html
http://htmltreegrid.com/newdocs/html/Flexicious%20HTMLTreeGrid.html?APIConfiguration.html
Anything you do in XML configuration, it is possible to do it using JavaScript API. If you want to add event listeners for functions,you have to identify what object to add the event listener to (grid, level, inner level, etc) and add the event listener.
grid.getColumnLevel().addEventListener(this,"itemLoad", myCompanyNameSpace.fullyLazyLoaded_flexdatagridcolumnlevel1_itemLoadHandler);
Question -> "how to get only top level footer in dynamic tree grid."
Answer -> For those of you who are not familiar with what a dynamic tree grid is, (Actually the term is dynamicLevels) - This means that the grid will introspect the data provider to automatically figure out how deep the tree will nest. This is in contrast to other configuratoins where you explicitly define how "deep" the tree will be, what columns will be at each level, etc. But in case the hierarchy is unknown at design time, the grid is capable of introspecting the data provider and automatically generating the levels at run time. You do this by setting enableDynamicLevels="true" on the grid. However, since the levels are not defined at design time, to be able to manipulate their properties at runtime, we have an event, DYNAMIC_LEVEL_CREATED and DYNAMIC_ALL_LEVELS_CREATED. Both these events are defined on the FlexDataGridEvent class. To accomplish this, you can do something like:
configuration:'<grid id="grid" dynamicLevelCreated="myCompanyNameSpace.onDynamicLevelCreated" enableDynamicLevels="true" enablePrint="true" enablePreferencePersistence="true" enableExport="true" forcePagerRow="true" pageSize="50" enableFilters="true" enableFooters="true" >' +
myCompanyNameSpace.onDynamicLevelCreated = function(evt){
evt.level.setEnableFooters(false);//only top level should have footer bar, dynamically generated levels should not.
};
Attached is a test case.
StandAlone.html (4.41 kb)