PDA

View Full Version : Getting error : Error: Ext.ux.grid.GridFilters is not a constructor



Krishnia
2 Oct 2011, 11:19 PM
Hi,

am using
GetGridBuilderFor for grid building for a list type, but getting error
Error: Ext.ux.grid.GridFilters is not a constructor
Source File: http://mses.local/Suppliers/Item/15
Line: 580



Ext.onReady(function(){
Ext.QuickTips.init();
var myData = [
['<a href="/Suppliers/Item/22"><img onmouseover="playLinkMouseOver(this)" onmouseout="playLinkMouseOut(this)" title="View Current Item" alt="View Current Item" src="/Content/images/links/play.png" margin="2px" onclick="hideUI(this)" /></a>','<a class="gridLink" href="/Suppliers/Item/22">3c785728-8731-4043-8174-1aade90c495e</a>','<a class="actionLink" href="/PurchaseDetails/Index/22"><img title="PurchaseDetails" alt="PurchaseDetails" src="/Content/images/links/detailslist.png" margin="2px" align="absmiddle"/></a><a class="actionLink" href="/Suppliers/Edit/22"><img title="Edit Current" alt="Edit Current" src="/Content/images/links/edit.png" margin="2px" align="absmiddle"/></a><a class="actionLink" href="/Suppliers/Delete/22"><img title="Delete Current" alt="Delete Current" src="/Content/images/links/delete.png" margin="2px" align="absmiddle"/></a>'] ];
var store = new Ext.data.ArrayStore({
fields: [{name: 'gotoitem'},{name: 'Id' ,type: 'string'},{name: 'Operations'}]
});
store.loadData(myData);
var filters = new Ext.ux.grid.GridFilters({
local: true,
filters: [
{type: 'string', dataIndex: 'Id'}
]});

every things seem fine but where is the problem.

Please suggest.