PDA

View Full Version : Grid proxy problem in IE



nani1216
25 Dec 2010, 4:20 AM
hai!.....

I'm loading into grid using proxy.....

Its works fine in Firefox and Chrome but its not working in IE

In IE the Grid Showing loading..... msg...

here is the code.........




// this is the store...........
var order_store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({

url:BASE_URL+'orders/getCourseBuilderOrders',
method: 'POST'
}),
reader: new Ext.data.JsonReader({
root: 'results',
totalProperty: 'total',
id: 'p_order_id'
}, [
'p_order_id',
'courses_number',
'user_id',
'course_price',
'c_package_id',
'user_pay_id',
{name:'purchased_date', type:'date'},
{name:'expiry_date', type:'date', dateFormat: 'Y-m-d'},
'net_amount',
'comments',
'course_name',
'price',
'fees',
'misc',
'total'


])
});



// paging bar
var pagingBar = new Ext.PagingToolbar({
pageSize:10,
store: order_store,
displayInfo: true,
displayMsg: 'Displaying Orders {0} - {1} of {2}',
emptyMsg: '<div style="width:490px;font-weight:bold;">No Orders to display</div>' //class="grid_empty_msg"
});

var order_grid = new Ext.grid.GridPanel({
renderTo: 'order',
title: false,
border:true,
trackMouseOver: false,
stripeRows: true,
loadMask: true,
autoHeight:true,
width:885,
store: order_store,
bbar: pagingBar,
columns: [
{header: "", sortable: false, width: 25, renderer: box},
{header: "Date", dataIndex: 'purchased_date', renderer:pdate, sortable: false, width: 100},
{header: "Order ID", dataIndex: 'p_order_id', sortable: true, width: 148},
{header: "Order Details", dataIndex: 'orderdetails', renderer: service, sortable: true, width: 246},
{header: "Revenue", dataIndex: 'net_amount', renderer: rev, sortable: true, width: 105},
{header: "Fees", dataIndex: 'fees', renderer: fees, sortable: true, width: 85},
{header: "Misc", dataIndex: 'misc', renderer: misc, sortable: true, width: 85},
{header: "Total", dataIndex: 'total', renderer: total, sortable: true, width: 80}
]
});

order_store.load({params:{start:0, limit:10}});



Whats the problem with this.. help me...

mankz
25 Dec 2010, 11:53 AM
1. What's your server response?
2. Add a listener for the store 'exception' event.
3. Happy holidays :)