i m create grouing with sorting example.
it is work perfectly but when i put paging functionality,it was not work properly...
data is not display with proper grouping...
i send my code pls review it and pls pls help me...
i need paging,sorting,grouping in extjsgrid....
/******************************************************************************************************/
//Ext.onReady(function(){
var HomeGrid = {
init: function(){
var primaryKey = 'Groupid';
var ps = 10;
Ext.QuickTips.init();
js.on('load',function()
{
var ds = new Ext.data.GroupingStore({
sortInfo:{field: 'MainGroupName', direction: "ASC"},
groupField:'MainGroupName',
proxy: new Ext.ux.data.PagingMemoryProxy(js.reader.jsonData),
reader: js.reader
});
var sm = new Ext.grid.RowSelectionModel({
singleSelect:true
});
// Define Column Model of the Grid
var cm = new Ext.grid.ColumnModel([
{id:'MainGroupName',header: 'MainGroupName', hidden: true, dataIndex: 'MainGroupName'},
//{header: 'MainGroupName', dataIndex: 'MainGroupName', hidden:true},
{header: 'Client Name', dataIndex: 'GroupName', sortable: true,renderer: renderGroup},
{header: 'Address City', dataIndex: 'City', sortable: true},
{header: 'Address State', dataIndex: 'State', sortable: true},
{header: 'GroupLevel', dataIndex: 'GroupLevelDescr', sortable: true},
{header: 'Status', dataIndex: 'GroupStatus', sortable: true} //renderer: Ext.util.Format.usMoney
]);
// Define Paging Toolbar for the Grid
/* var paging = new Ext.PagingToolbar({
pageSize: ps,
store: ds,
displayInfo: true,
displayMsg: 'Displaying Groups {0} - {1} of {2}',
emptyMsg: "No Groups to display"
});*/