PDA

View Full Version : [CLOSED] GridFilters - ListFilter Problem



opendat2000
Mar 12, 2014, 7:08 PM
GridFilters - ListFilter Problem

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/gridfilters/gridfilters-debug-js/ext.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.

Vladimir
Mar 12, 2014, 7:38 PM
It is fixed after 2.5 release, please update from SVN or use the override from the following post
http://forums.ext.net/showthread.php?28631-CLOSED-SVN-update-getCount-error-in-javascript&p=127791&viewfull=1#post127791

opendat2000
Mar 12, 2014, 9:00 PM
Thanks Vladimir, for your responses. I solved the problem with this thread.