dojox.grid.enhanced.plugins.Filter in declaratively defined dojox.grid.EnhancedGrid?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

dojox.grid.enhanced.plugins.Filter in declaratively defined dojox.grid.EnhancedGrid?

luke.knapek
This post was updated on .
Hi,
can I use filter plugin for EnhancedGrid in declaratively way like this?

<table id="dataGrid" jsId="dataGrid" dojoType="dojox.grid.EnhancedGrid"
  store="myStore"
  autoHeight="18"
  rowSelector="false"
  selectable="false"
  plugins="plugins">
<thead>
<tr>
<th field="id" hidden="true">id</th>
<th field="count" width="80" datatype="number">Count</th>
</tr>
</thead>

In this declaration, atribute datatype="number" is ignored a field "count" if filtering like a string (because it is default). I tried also other filter atributes (i.e. datatype="date" or autoComplete="true") and it does not work neither.
If I declare structure programmatically in this way:

 { field: "id", hidden:true},
 { field: "count", datatype: "number", width:"80", name:"Count"},

everything is allright. Is there any way how can I use filer plugin in the first declarative way?

I use dojo v. 1.7.1
Loading...