AnsweredAssumed Answered

API - Auto expand a tree grid

Question asked by gremlinsky on Jun 19, 2017
Latest reply on Aug 1, 2017 by gremlinsky
Hi there - I hope someone can help.
I have put together the HTML below to display a hierarchy for a particular project starting at a particular level (portfolio epic in this case) - to be put into Confluence.
When it is displayed it doesn't auto expand - so looks a bit odd - I only have 1 item at the top level so my page looks a bit bare. Is it possible to display the tree expanded ?

<!DOCTYPE html> <html> <head>     <title>Project Hierarchy</title>      <script type="text/javascript" src="[key]"></script>      <script type="text/javascript">         Rally.onReady(function() {             Ext.define('Rally.example.SimpleTreeGrid', {                 extend: '',                 componentCls: 'app',                              launch: function() {                     Ext.create('').build({                         models: ['PortfolioItem/PortfolioEpic'],                                 context: {                                  project: '/project/96617353056',                                  projectScopeDown: true                              },                               filters: [{property: 'name',                                 operator : '=',                                 value : [name]}                                 ],                         autoLoad: true,                         enableHierarchy: true                     }).then({                         success: this._onStoreBuilt,                         scope: this                     });                 },                              _onStoreBuilt: function(store) {                     this.add({                         xtype: 'rallytreegrid',                         store: store,                         context: this.getContext(),                         enableEditing: false,                         enableBulkEdit: false,                         shouldShowRowActionsColumn: false,                         enableRanking: false,                         columnCfgs: [                             'Name',                             'ScheduleState',                             'Owner'                         ]                     });                 }             });                           Rally.launchApp('Rally.example.SimpleTreeGrid', {               name: 'Simple Tree Grid Example'             });         });     </script>      <style type="text/css">              </style> </head> <body></body> </html>