Grid-Filter
By jack | January 6, 2009
I have a few Questions to the Grid-Filter-Example.
I modified the code:
Item.list.items = new Ext.data.JsonStore
({
url:'../../ItemListController',
fields:
[
{name:'itemID'},
{name:'shorttext'},
{name:'typ'},
{name:'statistic'},
{name:'lastUsed', type: 'date', dateFormat: 'Y-m-d'}
],
sortInfo: {field: 'itemID', direction: 'DESC'},
remoteSort: true
});
Item.list.columnModel = new Ext.grid.ColumnModel
([
{dataIndex: 'itemID', header: 'Item-ID'},
{dataIndex: 'shorttext', header: 'Kurztext'},
{dataIndex: 'typ', header: 'Typ'},
{dataIndex: 'statistic', header: 'Kennzahlen'},
{dataIndex: 'lastUsed', header: 'Klausur'}
]);
Item.list.columnModel.defaultSortable = true;
Item.list.itemList = new Ext.grid.GridPanel
({
id: 'itemList',
title: 'test',
ds: Item.list.items,
cm: Item.list.columnModel,
enableColLock: false,
loadMask: true,
bbar: new Ext.PagingToolbar
({
store: Item.list.items,
pageSize: 25
})
});
Item.list.itemList.setHeight(500);
Item.list.items.load({params:{start: 0, limit: 25}});
The few items that I have are correctly shown!
Now my questions:
1. How I can use the sort functions? Of course it has no effect that i sort the itemID DESC or ASC automatically... but how this parameter are transported to my Controller, that creates the json-stream? The example doesn't work in this point at all.
2. How I can use the filters in the same way?
3. How I can set how many sites are available?
4. Is it possible to drag & drop items of the list into a tree?
Greetings FireGlow
Do you find a way to drag frome a grid filter to a tree.
Thanks for your help.
#If you have any other info about this subject , Please add it free.# |
Topics: enart.xn--fiqs8sjn5by0n.com | edit
