PDA

View Full Version : to create ListView in extjs 4



tejas@reach1to1.com
8 Jul 2011, 10:58 PM
I have a listview created like

new Ext.list.ListView({
store: ds1,
//multiSelect: true,
//disabled:true,
emptyText: 'No value to display',
reserveScrollOffset: true,
height:250,
columns: [{
header: 'Fields to be used in the Message',
width: .5,
dataIndex: 'key'
}]
})


I want it done in Extjs 4....do comment thanks

mitchellsimoens
9 Jul 2011, 6:28 AM
There is no longer ListView in Ext JS 4. Ext.grid.Panel is now just as light weight as ListView was. You add functionality using plugins and features.

http://dev.sencha.com/deploy/ext-4.0.0/examples/grid/list-view.html

tejas@reach1to1.com
10 Jul 2011, 8:42 PM
Thanks :)

rajesh_awate
22 Aug 2011, 12:15 AM
Hi,

I want to have a grid or listview with 3 columns.
First column will be read only(text).
Other 2 columns should have combo box.
Each row should show combo not like editor grid panel in which combo box shown on click of a cell.
I need to show combo by default when grid/listview rendered.

I have attached 1 screenshot for my requirement.
I'm using ExtJS 4.0.

In attached image i have fulfilled my requirement by using a simple panel and adding panel as 1 row.
But in case of more records, it is getting hanged at the time of rendering.
Hence i want to use grid/listview so that there will be no issue and my requirement will be fulfilled.


Thanks in advance...

Rajesh.
-------------------------------------------------------------------
27593