Results 1 to 3 of 3

Thread: Ext.List Issue - Select item is not firing

  1. #1
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
      0  

    Default Ext.List Issue - Select item is not firing

    Previously it was working.

    But, In 1.1a, my Ext.List is not working correctly.

    When I am clicking mouse on List item, it is not selecting.
    My setting is -

    Code:
    var ProjectList = new Ext.List({
                title: 'Project',
                iconCls: 'bookmarks',
                layout: 'card',
    
    
                //List Structure    
                itemTpl: '{ProjectNumber} {ProjectName} {ProjectStatus}',
                tpl: '<tpl for="."><div class="project"><strong>{ProjectName}</strong> {ProjectNumber} {ProjectStatus} </div></tpl>',
                itemSelector: 'div.Project',
                singleSelect: true,   //Is OK?
                grouped: true,
                indexBar: true,
    
    
                store: new Ext.data.Store({
                    model: 'Project',
                    proxy: {
                        type: 'ajax',
                        url: '/home/index',
                        reader: {
                            type: 'json',
                            root: 'data'
                        },
                        actionMethods: {
                            read: 'POST'
                        }
                    },
                    autoLoad: true,
    
    
                    getGroupString: function (record) {
                        return record.get('ProjectStatus');
                    }
    
                })
    
                
    // What should I add here? Please help
                listeners: {
                
            }
          
    
        }) // ~Get ProjectList with Project Tab
    I am trying to test on Google Chrome.
    What am I doing wrong?
    Please help anyone. Working several days but no solution.

  2. #2
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    20
      0  

    Default

    Use itemTpl instead of tpl,
    No need to use itemSelector
    Specify itemtap in listeners to get select items details

  3. #3
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
      0  

    Default

    Thanks. It is working now.

Similar Threads

  1. How to select the first list item on a ComboBox?
    By staticboy in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 17 Oct 2018, 10:56 AM
  2. Problem to select item on the List items
    By Riaz in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Feb 2011, 6:08 PM
  3. [INFOREQ] (RC1) Reload a list after select an item
    By dbottillo in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 15 Nov 2010, 7:19 AM
  4. List View Select Issue
    By rupesh.patayane in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 11 May 2010, 1:55 AM
  5. Replies: 0
    Last Post: 23 Apr 2008, 3:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •