PDA

View Full Version : easy remote sorting question



nadeemshafi9
23 Apr 2009, 8:48 AM
hello guys

my remote sorting is not working, i am sure i am missing somthing in my JsonStore, it dosent even attempt to load when i click a feild


border: false,
height:350,
items: [{
id: 'tabgroups',
title: 'Groups',
layout:'border',
items: [{
xtype: 'grid',
region:'center',
id: 'gridUsersGroups',
loadMask: true,
store: new Ext.data.JsonStore({
url: '/api/users/usersgroupsgridjson',
remoteSort: true,
baseParams: {
user_id: m[0].data.id
},
autoLoad: true,
root: 'items',
fields: ['id', 'name', 'contact_id', 'remove']
}),
columns: [
{header: 'id', width: 20, sortable: true, hidden: true},
{header: 'Name', width: 120, sortable: true},
{header: 'contact_id', width: 120, sortable: true, hidden: true},
{header: 'Remove', width: 120, sortable: true}
],
width:600,
height:300,
listeners: {
rowd


thanks

N