1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    2
    Vote Rating
    0
    ta4ka is on a distinguished road

      0  

    Default Unanswered: Preselecting a list view

    Unanswered: Preselecting a list view


    Hello i am trying to preselect a listview on load but can't seem to do it. With comboboxes I just loaded the store and used the setValue method. But here it doesn't exist. I have tried with the .value field alos but still nothing.

    this is my store:
    var storeSeries = new Ext.data.ArrayStore({
    id: 1,
    fields: ['color', 'name', 'ploted'],
    data: []
    });

    My listview:

    {
    xtype: 'listview',
    id: 'lvSeriesSelector',
    store: storeSeries,
    //multiSelect: false,
    emptyText: 'No series to display',
    hideHeaders: true,
    singleSelect: true,
    value: lvSeriesSelectorValue,
    //reserveScrollOffset: true,
    columns: [

    {
    header: 'Color',
    width: .1,
    dataIndex: 'color'
    },
    {
    header: 'Name',
    width: .35,
    dataIndex: 'name'
    },
    {
    header: 'Ploted',
    dataIndex: 'ploted',
    align: 'right'
    }],
    listeners: {
    scope: this,
    'click': lvSeriesSelectorHandler
    }
    },

  2. #2
    Sencha User mberrie's Avatar
    Join Date
    Feb 2011
    Location
    Bangkok, Thailand
    Posts
    506
    Answers
    26
    Vote Rating
    14
    mberrie will become famous soon enough mberrie will become famous soon enough

      0  

    Default


    Stumbled upon this while migrating my ListView. So for the archives (since its 2 months old)

    Ext.list.ListView is no more, use a Ext.grid.Panel instead.

    Things worth considering:
    • ListView used a ColumnLayout with percentage for widths, the Ext4 grid panel uses a BoxLayout (supports absolute widths like '50px' and relative widths via 'flex'
    • To select an entry programmatically, use #getSelectionModel().select(record) or similar. To mimic the behavior of ListView use the default Row(Selection)Model and selectByPosition({ row: 0}) for the first row

    hth

Similar Threads

  1. Even Odd list View
    By nickponico in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 31 Jan 2011, 4:02 PM
  2. Preselecting a row in Ext.GridPanel in IE
    By amodg in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 25 Dec 2009, 2:13 AM
  3. Replies: 22
    Last Post: 1 Nov 2009, 11:45 PM
  4. List view which behaves like windows explorer list view
    By suvarnal in forum Ext GWT: Help & Discussion (1.x)
    Replies: 4
    Last Post: 9 Dec 2008, 5:39 AM
  5. Replies: 11
    Last Post: 25 Sep 2008, 10:26 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."