[Grid] Ext.data documenation - Ext JS

用户尝试将网格组件移植到Ext1.0版本中遇到显示问题,在Firefox浏览器下无法正常渲染网格。通过逐步简化测试代码,最终发现是遗漏了CSS文件加载导致的问题。
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
Reply With Quote
  #2  
Old 03-04-2007, 01:20 PM
DefaultAlso

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
Reply With Quote
  #3  
Old 03-04-2007, 01:21 PM
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.
__________________
Tim Ryan - Ext JS Support Team
Read BEFORE posting a question / posting a Bug
Use Google to Search - API / Forum
API Doc (3.x | 2.x | 1.x) / FAQ / Wiki / Tutorials / 1.x->2.0 Migration Guide
Reply With Quote
  #4  
Old 03-04-2007, 02:21 PM
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?
<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>
Reply With Quote
  #5  
Old 03-04-2007, 02:24 PM
Default

Nevermind... forgot to load the css.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值