1. #21
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Red face


    My sample at GitHub rewrited according to current version of ST2 (Beta 1)... questions or proposition, you are welcome.

  2. #22
    Sencha User
    Join Date
    Feb 2012
    Location
    India
    Posts
    1
    Vote Rating
    0
    ManavMagan is on a distinguished road

      0  

    Default Ajax not working after native packaging

    Ajax not working after native packaging


    if i run the code on device it shows me blank screen.

  3. #23
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    Unfortunately, now I can not verify the reason for not running the application

  4. #24
    Sencha User
    Join Date
    Nov 2011
    Posts
    11
    Vote Rating
    0
    xixichensh is on a distinguished road

      0  

    Cool Picker Can not alert...........

    Picker Can not alert...........


    Hi
    the mvc frame can not popup
    I use the mvc frame to develop an app, i find when i define a function to button,such as
    Code:
    text   : 'Back',   
    ui     : 'back',
    hidden : false,
    handler:function(){
                var picker = Ext.create('Ext.Picker', {
                        slots: [
                              {
                           name : 'limit_speed',
                           title: 'Speed',
                           data : [
                           {text: '50 KB/s', value: 50},
                           {text: '100 KB/s', value: 100},
                           {text: '200 KB/s', value: 200},
                           {text: '300 KB/s', value: 300}
                                            ]
                                        }
                                    ]
                                });
    
    
                                picker.show();
                            }

    Unfortunately´╝îthere are error "Uncaught TypeError: Cannot call method 'getPageBox' of null"........could you give some suggestion to solve the problem,thanks
    Last edited by xixichensh; 29 Feb 2012 at 2:06 AM. Reason: question is not clear

  5. #25
    Sencha User
    Join Date
    Jun 2011
    Posts
    21
    Vote Rating
    0
    ardnet is on a distinguished road

      0  

    Default


    Hi kostysh, thanks a lot. I've been having difficulties on using NestedList as well, but when I tried your method, it is working! thx!

    Anyway, I wanna ask something:
    in your Sectionlist.js, you put 'store' as 'Sections', instead of 'Myapp.store.Sections'.
    Do you mind explaining why need to do that?

    Thanks

  6. #26
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    Quote Originally Posted by ardnet View Post
    in your Sectionlist.js, you put 'store' as 'Sections', instead of 'Myapp.store.Sections'.
    Do you mind explaining why need to do that?
    because NestedList view uses a store what already defined inside controller. Look to source code of Sencha Touch NestedList component (method applyStore)


    In the controller we can define store as 'Myapp.store.Sections' or as 'Sections' (no difference, because controller uses Ext.Loader what automaticaly find path to store)

  7. #27
    Sencha User
    Join Date
    Mar 2012
    Posts
    40
    Vote Rating
    0
    GaelenN is on a distinguished road

      0  

    Default


    How can I get a different set of information passed?

    Code:
    items: [            {
                    title: 'My catalog',
                    iconCls: 'bookmarks',
                    xtype: 'sectionslist'
                },
    ^^This... changed to this
    Code:
    items: [            {
                    title: 'My catalog',
                    iconCls: 'bookmarks',
                    xtype: 'featuredlist'
                },
    doesnt want to pass through no matter how i do it.

    Any insite?

  8. #28
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    xtype: 'sectionslist'
    this xtype defined in file app/view/Sectionslist.js
    if you want, you can define your own

  9. #29
    Sencha User
    Join Date
    Mar 2012
    Posts
    40
    Vote Rating
    0
    GaelenN is on a distinguished road

      0  

    Default


    Code:
    Ext.define('Myapp.view.Featuredlist', {    extend: 'Ext.dataview.NestedList',
        xtype: 'featuredlist',
    this is what you're suggesting? is there anywhere else it passes through?

  10. #30
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    175
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    yes, something like this.
    and do not forget to add this your view to the views list inside app.js