jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Filterrow

This topic contains 6 replies, has 2 voices, and was last updated by  Dimitar 10 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Grid Filterrow #56062

    Mowlali
    Participant

    Team,

    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/filterrow.htm

    I am not able filter ‘0’ value. But its working in above link. Kindly help me regarding it.

    Regards,
    Ali.

    Grid Filterrow #56063

    Dimitar
    Participant

    Hello Ali,

    Please provide us with your code so that we may determine the source of the issue.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid Filterrow #56064

    Mowlali
    Participant

    `
    var source = {
    datatype: ‘json’,
    type: ‘post’,
    async: true,
    cache: false,
    url: url,
    datafields: [
    { name: ‘Name’ },
    { name: ‘ID’ },
    { name: ‘Total’ }
    ],
    id: ”
    };

    var dataAdapter = new $.jqx.dataAdapter(source, {
    downloadComplete: function (data, status, xhr) {
    },
    loadComplete: function (data, status, xhr) {

    },
    loadError: function (data, status, xhr) {

    }
    });

    $(‘#grid’).jqxGrid({
    width: 1300,
    height: 200,
    source: dataAdapter,
    autoshowloadelement: false,
    sortable: true,
    pageable: false,
    altrows: true,
    enabletooltips: true,
    groupable: true,
    showfilterrow: true,
    filterable: true,
    groupsexpandedbydefault: true,
    showstatusbar: true,
    columnsresize: true,
    theme: GetJQXTheme(),
    columns: [
    { text: ‘Name’, datafield: ‘Name’, width: ‘15%’, filtertype: ‘textbox’, align: ‘center’ },
    { text: ‘ID’, datafield: ‘ID’, width: ‘25%’, filtertype: ‘textbox’, },
    { text: ‘Total’, datafield: ‘Total’, cellsalign: ‘center’, filtertype: ‘number’, },

    ]
    });

    Grid Filterrow #56069

    Dimitar
    Participant

    Hi Ali,

    Please try setting the type of your datafields, i.e.:

    datafields: [
    { name: 'Name', type: 'string' },
    { name: 'ID', type: 'number' },
    { name: 'Total', type: 'number' }
    ],

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid Filterrow #56073

    Mowlali
    Participant

    Still Its not Working Dude.

    Grid Filterrow #56080

    Mowlali
    Participant

    Dimitar,

    Can i have any updates on this.

    Regards,
    Ali.

    Grid Filterrow #56143

    Dimitar
    Participant

    Hi Ali,

    Which column are you trying to filter – “ID” or “Total”? Would you be able to create a JSFiddle example which reproduces the issue? Make sure you are using the latest version of jQWidgets (3.3.0).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.