View Full Version : Store with remote data loading using Generic handler

28 Nov 2013, 7:48 AM

I am implementing MVC architecture.And Iam loading my store with remote data populated in ASHX page. My issue is that while debugging i found that control is not transferring to ASHX page .Due to this I am unable to load data to my grid. I need to know why control is not going to handler page.

Below is the code ,Please tell me where i am going wrong

Ext.define('RM.store.PublishedpolicystatusbymonthlyDataSets', {
extend: 'Ext.data.Store',
model: 'RM.model.PublishedPolicyStatusByMonthlyDataSet',
proxy: {
type: 'ajax',
url: 'ReportsHandler.ashx',
reader: {
type: 'json',
root: 'ChartDocument'

Thanks in advance
Ashwin Rai

Gary Schlosberg
30 Nov 2013, 8:54 AM
Are you saying that ReportsHandler.ashx is never being called when you load your store?

30 Nov 2013, 10:30 AM
When you view the remote request in your debugging tool, what response do you get? No response? 404?

And if you hit the same URL apart from Ext JS, do you get the desired response? I always start with the simplest test in order to verify the fundamentals, and then move on to more complex implementations. Sometimes just testing URLs apart from the AJAX/Ext JS gloss helps to illuminate the issue.