Results 1 to 3 of 3

Thread: grid filter feature not working

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    2

    Default grid filter feature not working

    Hi, i am new to Ext grid. i am using ext-4.0.7-gpl FiltersFeature.js for filtering data . i were able to make grid and add filter in that grid but i found problem in filter as it is showing filter in grid column but when i enter data filter textbox it will not filter records in grid.

    My filter code is,

    var filtersCfg = {
    ftype: 'filters',
    autoReload: false, //don't reload automatically
    local: true, //only filter locally
    // filters may be configured through the plugin,
    // or in the column definition within the headers configuration
    filters: [
    {
    type: 'numeric',
    dataIndex: 'ID'
    },
    {
    type: 'string',
    dataIndex: 'Description'
    }
    ]
    };

    var gridCondition = Ext.create('Ext.grid.Panel', {
    id: 'gridCondition',
    renderTo: 'gridConditions',
    store: userStore,
    autoHeight: true,
    iconCls: 'icon-grid',
    forceFit: true,
    columnLines: true,
    features: [{ ftype: 'filters'}],
    columns: [
    {
    text: 'ID',
    hidden: true,
    dataIndex: 'ID',
    flex: 0,
    align: 'center'
    },
    {
    text: 'Description',
    sortable: true,
    dataIndex: 'Description',
    flex: 1,
    filterable: true }
    ]
    });

    Please help me to fix this issue ..

    Thanks,
    Vicky

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    2

    Default

    i was missing 'filterupdate' event which fire when enter data in filter textbox. what was the code of filter update event..

    Please give suggestion..

  3. #3

    Default

    Hello,
    I recommend that you remove the data-binding of the grid on Page_Load and use Advanced Data-binding (using NeedDataSource event) only.Please let me know whether this helps.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •