Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    12
    Vote Rating
    0
    yul is on a distinguished road

      0  

    Default [B1] Select event stops working on clicked item in Ext.List

    [B1] Select event stops working on clicked item in Ext.List


    REQUIRED INFORMATION
    Ext version tested:
    • Sencha Touch 2 Beta 1
    Browser versions tested against:
    • Google Chrome
    • Safari 5
    DOCTYPE tested against:
    • html
    Description:
    I am creating MVC app, there are 3 views in viewport: login, appointmentsList and appointmentDetail. appointmentsList is based on Ext.List, in controller I have a ref for it and a control for handling 'select' event.
    When item in list is clicked, viewport switches to detail view. And when 'Back' button is clicked, it switches back to list. The problem is that if I click the same item after that, nothing happens. I can click another item and it works. But after returning to list that last clicked item stops working, and first item is working again.
    Steps to reproduce the problem:
    • Create MVC app with 2 views: items list and detail panel with navigation by list 'tap' event.
    • Tap/click on the item in the list
    • Navigate back to list ("Back" button, for example)
    • Tap/click on the same item.
    The result that was expected:
    • Navigating to detail view of the selected item
    The result that occurs instead:
    • nothing happens. You can click on any other item and it works, but that other item then becomes not working and original item is working again.
    Test Case:
    Sorry, I can't insert the whole code, this is the part of the controller, nothing complicated:
    Code:
     config: {
             refs:{
                 viewport: '#rootpanel',
                 login: '#loginPanel',
                 detailpanel: '#appointmentDetail',
                 listpanel: '#appointmentsList'
                 backButton: 'button[action=back]',
                 reloadButton: 'button[action=reload]'
             },
             control: {
                 'button[action=back]':{
                     tap:'showList'
                 },
                 listpanel: {
                     select:'showDetail'
                 }
             }
         },
    
        reload: function() {
            Ext.Viewport.getActiveItem().getActiveItem().getStore().load(); // P.S. is there a better way to access views/stores?
        },
    
        showList:function () {
            var viewport = Ext.Viewport.getActiveItem();
    
            viewport.getLayout().setAnimation({
                type:'slide',
                direction:'right'
            });
            viewport.setActiveItem('appointmentsList');
            this.getBackButton().hide();
            this.getReloadButton().show();
            this.reload();
        },
    
        showDetail:function (dataview, record) {
            var viewport = Ext.Viewport.getActiveItem();
    
            this.getDetailpanel().setData(record.data);
            viewport.getLayout().setAnimation({
                type:'slide',
                direction:'left'
            });
            viewport.setActiveItem('appointmentDetail');
            this.getBackButton().show();
            this.getReloadButton().hide();
            return true;
        },
    HELPFUL INFORMATION
    Screenshot or Video:
    • none
    See this URL for live test case: http:// Debugging already done:
    • none
    Possible fix:
    • would like to know
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Windows 7

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    If I read this correctly, it sounds like you simply need to call dataview.deselectAll() after you setActiveItem in your showDetail method. The reason is that the List will not let you re-select something it believes is already selected. What you have created is very similar to a NestedList which does this as well.

    Let me know if that solves your issue.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    12
    Vote Rating
    0
    yul is on a distinguished road

      0  

    Default


    Yes, it works! Thanks, but why it doesn't show the item as selected?
    UPD: Actually, as I recall on PR4 I had this problem (didn't dig in it at that time) and item was shown as selected.

Thread Participants: 1

Tags for this Thread