Hi,
Is it possible to do paging with xml data?
I tried with
proxy: new Ext.ux.data.PagingMemoryProxy({'
00147482
00147482
00147482
'}), but it is not working.
I tried with dynamic xml
proxy: new Ext.ux.data.PagingMemoryProxy({'http://localhost:8080/fastcarfm/servive/new/}), it is not working.
MT22のメモ帳 Ext.data.Store で GClientGeocoder を実装する:: Ext.ux.data.PagingMemoryProxyの改良版 に speannapatly より. EnterによるSubmit抑止 に derek より XML (1) 技術書 (4) Ajax. Ext JS. ExtJapan. Google マップ API リファレンス. Java. JAVA http://moriwaki.net/cms/?p=243HOME
com.gwtext.client.data:: PagingMemoryProxy. A paging proxy that supports paging of local array data. Data reader class to create an Array ofRecord objects from an XML document based http://gwt-ext.com/docs/gwtext1/com/gwtext/client/data/package-summary.htmlHOME
Please help
You need to setup an XmlReader for your PaginationProxy in the right way.
The XmlReader has the responsability to read the data, so check if your reader is working..fixing the reader you will fix the problem I think :)
Hope this helps
I see data with alert message from Ajax call. but i get error message.
xmlreader works fine with Httpproxy,but i have to use pagingmemoryproxy because i am hitting the database once and retreiving the data for pagination. but i donot know how to make any array or object of xml reader(data)to use with pagingmemoryproxy.
I think you have to do this.
If your XmlReader works fine with HttpProxy, it means that it's ok.
To make it work with PagingMemoryProxy, you have to follow this step (hopefully):
1)Create an Ajax call to load your xml data first of all; from the response you need to obtain the xmlDocument, so define your data like:
var data = response.responseXML (response is returned from your Ajax Call)
2)Create your PagingMemoryProxy passing in the costructor your variable data defined at step 1
3)Create your XmlReader (configure it in the same way you have done with the HttpProxy).
4)Create your Store with the proxy defined at step 2 and the reader defined at step 3
I think that's it. Let me know please, I haven't tried actually, but I think it could be OK :)