This project is read-only.

Ext.net.Store

Overview
The Ext.net.Store extends the ExtJS.data.Store to consume native ADO.Net DataSets exposed as XML web services.

Ext.net.Store parses the schema and creates an XML Reader the first time the store loads. This eliminates the need to create a DataReader and record definition, which reduces the amount of code that an ASP.Net/ExtJs has to write to consume a web service.

Usage
Place the file in your project. Declare Ext.net.Store any place you would use an Ext.data.Store and use all the same parameters except reader, which will be ignored and overwritten if passed.

An optional parameter object, net, is now accepted. net has two properties (described below): dataTable and totalRecords.

net.dataTable : String
(required) The name of the data table that contains the data.

net.dataTableId: String
(optional) The name of the field that serves as the data table id. If this parameter is omitted, then the first field of the data table becomes the id.

net.totalRecords: String
(optional) The name of the data table that contains the total records count for paging. This table should have a single column in it that contains an integer value for the total number of records in the dataTable argument. The Ext.net.Store automatically will calculate and fill in the path for paging purposes on subsequent loads.
---
If net is not passed, the Ext.net.Store will automatically parse the first table exposed in the DataSet. All other tables will be ignored.

Last edited Mar 3, 2010 at 1:35 AM by rlieving, version 3

Comments

No comments yet.