adding custom fields to dataview with store

Viewed 17

Is it possible to add custom fields to defined store data in dataviewcomponent. Here is an example of what i want to do.

          {
            xtype:'componentdataview',
            bind:{
                store:{
                    storeId:'schedules',
                    fields:[{
                       name:'foo',
                       defaultValue:'{x}'
                     }]
               }
           }

Unfortunately I have been only able to do this thru loading the store into the view model and binding it like this.

         {
            xtype:'componentdataview',
            bind:{
                store:{
                    data:'{schedulesData}',
                    fields:[{
                       name:'foo',
                       defaultValue:'{x}'
                     }]
               }
          }
0 Answers
Related