Results 1 to 2 of 2

Thread: Preselecting a list view

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Vote Rating

    Default 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{
    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
    Bangkok, Thailand
    Vote Rating


    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


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

Posting Permissions

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