1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    112
    Vote Rating
    0
    jeffiel is on a distinguished road

      0  

    Default [Grid] Ext.data documenation

    [Grid] Ext.data documenation


    I'm porting my grids to use the new Ext 1.0, but I'm finding that the documentation is lacking entries for the Ext.data.Store and Ext.data.XMLReader, etc.

    Just a heads up, it would be nice ot have these documented.

    -jeff

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    112
    Vote Rating
    0
    jeffiel is on a distinguished road

      0  

    Default Also

    Also


    separate note, but I'm trying to debug an exception in ext-jquery-adaptor, but the distribution only contains a compressed version. Can you distribute a -debug version as well? Thanks.

    -jefff

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    This code still in an alpha release state - as such, the documentation is incomplete. This will be done by the time the official release is ready.

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    112
    Vote Rating
    0
    jeffiel is on a distinguished road

      0  

    Default


    Quote Originally Posted by tryanDLS
    This code still in an alpha release state - as such, the documentation is incomplete. This will be done by the time the official release is ready.
    Thanks. It seems that releasing the Alpha is so you can get testers, but it's hard to test w/o docs. That's all.

    On a separate note, I'm unable to get Ext 1.0 grids to render in FF. At first, I was trying to port my grids to 1.0, but I couldn't get them to render. So now, I've slowly reduced my test to merely the example from xml-grid.js. Still won't render, as in nothing draws on the page. The only changes I've made are to link the libs and the example xml to my docroot. any suggestions?
    Code:
    <html>
    <head>
    
    <script language="Javascript" src="/core/js/ext/jquery.js"></script>
    <script language="Javascript" src="/core/js/ext/jquery-plugins.js"></script>
    <script language="Javascript" src="/core/js/ext/ext-jquery-adapter.js"></script>
    <script language="Javascript" src="/core/js/ext/ext-all-debug.js"></script>
    
    </head>
    
    <body>
    
    
    <div id="example-grid" class="x-grid-mso" style="border: 1px solid #c3daf9; overflow: hidden; width:520px;"></div>
    
    <script>
    Ext.onReady(function(){
    
    
        // create the Data Store
        var ds = new Ext.data.Store({
            // load using HTTP
            proxy: new Ext.data.HttpProxy({url: '/core/js/ext/examples/grid/sheldon.xml'}),
    
            // the return will be XML, so lets set up a reader
            reader: new Ext.data.XmlReader({
                   // records will have an "Item" tag
                   record: 'Item',
                   id: 'ASIN'
               }, [
                   // set up the fields mapping into the xml doc
                   // The first needs mapping, the others are very basic
                   {name: 'Author', mapping: 'ItemAttributes > Author'},
                   'Title', 'Manufacturer', 'ProductGroup'
               ])
        });
    
        var cm = new Ext.grid.ColumnModel([
    	    {header: "Author", width: 120, dataIndex: 'Author'},
    		{header: "Title", width: 180, dataIndex: 'Title'},
    		{header: "Manufacturer", width: 115, dataIndex: 'Manufacturer'},
    		{header: "Product Group", width: 100, dataIndex: 'ProductGroup'}
    	]);
        cm.defaultSortable = true;
    
        // create the grid
        var grid = new Ext.grid.Grid('example-grid', {
            ds: ds,
            cm: cm
        });
        grid.render();
    
        ds.load();
    
    });
    
    </script>
    
    </body>
    </html>

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    112
    Vote Rating
    0
    jeffiel is on a distinguished road

      0  

    Default


    Nevermind... forgot to load the css.

Similar Threads

  1. Grid problem,Ext.data.Store can not get data
    By melin in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 2 Apr 2008, 10:39 PM
  2. paging post vars & retrieving data from the data store
    By VinylFox in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 Mar 2007, 9:40 AM
  3. Data from Grid
    By spatel in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 19 Feb 2007, 4:58 PM
  4. XML data grid
    By punitshah in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 21 Jan 2007, 12:15 PM
  5. multiple json data models and 1 grid, reusing a grid
    By hgcphoenix in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Dec 2006, 9:19 AM

Thread Participants: 1