Mar 12, 2014, 6:08 PM
[CLOSED] GridFilters - ListFilter Problem
GridFilters - ListFilter Problem
I was working with the Ext.Net v2.4 and the next code lines it's working fine:
not controlled exception in line 84, colum 13 en http://localhost:37967/ux/grid/gridf...xt.axd?v=30649
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'getCount'
I was working with the Ext.Net v2.4 and the next code lines it's working fine:
<ext:GridFilters runat="server" Local="true">
<Filters>
<ext:StringFilter DataIndex="COL1" />
<ext:StringFilter DataIndex="COL2" />
<ext:ListFilter IDField="DESCRIPCION" DataIndex="TIPO" StoreID="StoreTipo" LabelField="DESCRIPCION">
<Listeners>
<Deactivate Handler="this.menu.items.each(function (item) {item.setChecked(false);});" />
</Listeners>
</ext:ListFilter>
</Filters>
</ext:GridFilters>
I updated the Ext.Net version to v2.5 and the app gives me the next error:not controlled exception in line 84, colum 13 en http://localhost:37967/ux/grid/gridf...xt.axd?v=30649
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'getCount'
if(this.store.getCount() > 0) <--- Line with the problem
{
this.onLoad(this.store, this.store.getRange());
}
else
{
this.add({text: this.loadingText, iconCls: 'loading-indicator'});
this.store.on('load', this.onLoad, this);
}
I put comments in the code-line that use "ListFilter" and it works fine
<ext:GridFilters runat="server" Local="true">
<Filters>
<ext:StringFilter DataIndex="COL1" />
<ext:StringFilter DataIndex="COL2" />
<%-- <ext:ListFilter IDField="DESCRIPCION" DataIndex="TIPO" StoreID="StoreTipo" LabelField="DESCRIPCION">
<Listeners>
<Deactivate Handler="this.menu.items.each(function (item) {item.setChecked(false);});" />
</Listeners>
</ext:ListFilter> --%>
</Filters>
</ext:GridFilters>
Any help is appreciated.
Last edited by Daniil; Mar 13, 2014 at 5:42 AM.
Reason: Please use [CODE] tags, [CLOSED]