jQuery UI Widgets › Forums › Grid › Filter items are empty, if not all parameters
This topic contains 3 replies, has 2 voices, and was last updated by Dimitar 11 years ago.
Viewing 4 posts - 1 through 4 (of 4 total)
-
Author
-
If I add only one parameter, then Filter items is empty.
e.g. http://jsfiddle.net/amalyavkin/3oq0fvp8/1/
If I point all the parameters, it’s all right.One of the rows does not contain a value for Date column. In such case filters for Date column are empty. I think, this is incorrect behaviour.
I present the code and screenshot.
var data = [ {firstname: "Ivan"}, {firstname: "Alex", "Date": "10-2-2014"}, {firstname: "Anna", "Date": "10-3-2014"}, {firstname: "Karl", "Date": ""}, {firstname: "Innel", "Date": "10-5-2014"}, {firstname: "Rita", "Date": "10-6-2014"}, {firstname: "Ada", "Date": ""}, {firstname: "Brian", "Date": "10-8-2014"} ]; var source = { localdata: data, datatype: "array", datafields: [{ name: 'firstname', type: 'string' }, { name: 'Date', type: 'date' }] }; var dataAdapter = new $.jqx.dataAdapter(source); $("#jqxgrid").jqxGrid( { width: 500, source: dataAdapter, sortable: true, filterable: true, filtermode: 'excel', columnsresize: true, autoshowfiltericon: false, columns: [{ text: 'Date', datafield: 'Date', width: 250, cellsformat: "d", }, { text: 'First Name', datafield: 'firstname', width: 250 }] });
Can I some way get around this bug?
Hi amalyavkin,
This issue is related to the one described in the topic Reset formatting date in filter items.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.