是否可以在ExtJS 4.1.x中执行此过程?
var myMixedCollection = myStore.queryBy(...);
var anotherStore = Ext.create('Ext.data.Store', { data: myMixedCollection, ... });
var myGrid = Ext.create('Ext.grid.Panel', { store: anotherStore, ... });
Run Code Online (Sandbox Code Playgroud)
因为我的网格没有显示任何内容或仅显示一个空行
当我记录我的myMixedCollection所有数据都没有问题,但是当我anotherStore用Firebug 打开我时,我可以看到我的数据存储中只有一个空行.
我有问题,我需要你。
我有一个想法用以下代码来解决它:
<xsl:template match="root">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*[@foo]" priority="3">
<p>This text must be systematically added for any rendered element having a foo attribute</p>
<xsl:apply-templates select="."/>
</xsl:template>
<xsl:template match="bar1">
<p>This is the normal rendering for the bar1 element</p>
</xsl:template>
<xsl:template match="bar1[@class='1']">
<p>This is the normal rendering for the bar1 element with class 1</p>
</xsl:template>
<xsl:template match="bar1[@class='2']">
<p>This is the normal rendering for the bar1 element with class 2</p>
</xsl:template>
...
<xsl:template match="barN">
<p>This is the normal rendering for the barN element</p> …Run Code Online (Sandbox Code Playgroud)