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.
-
AuthorGrid Filterrow Posts
-
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.Hello Ali,
Please provide us with your code so that we may determine the source of the issue.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/`
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’, },]
});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,
DimitarjQWidgets team
http://www.jqwidgets.com/Still Its not Working Dude.
Dimitar,
Can i have any updates on this.
Regards,
Ali.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,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.