jQWidgets Forums
jQuery UI Widgets › Forums › Grid › In jqwidget grid filter not supporting custome format
Tagged: grid, jquery gridview
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 10 years, 4 months ago.
-
Author
-
Hi we use jqwidget grid in which when we filter the record on first filter and clicking on calender we are able to see the filter text box text and calander day as same but after filtering once and opening the filter for second time in text box it shows the filter date correctly on expanding the calender it behave strange by showing some “1914”.
Please note this issue we are facing only in internet explorer
What we did is mentioned below:
We have implemented the below code for showing the filter textbox text to be in customization format and we face this issue:
updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton,
columnfilter, filtertype, filterconditions) {
if (filtertype == “datefilter”) {
filterinputfield1.jqxDateTimeInput({ formatString: $.x.y.z.substring(0, $.x.y.z.lastIndexOf(‘y’) + 1) });
filterinputfield2.jqxDateTimeInput({ formatString: $.x.y.z.substring(0, $.x.y.z.lastIndexOf(‘y’) + 1) });
}
}
Please note we are not able to upload the image to tell on words clearly the filter text box shows date like 01/06/15 and since the column is of date filter we have the calender icon next to the text box on expanding it points to june 01 but year it shows as 1915.Hi arunthatham,
If you filter a Date column initialized correctly according to the documentation and your filter widgets is DateTimeInput, your Formatting does not matter at all, all the filtering is done by using JavaScript Date Objects with which our widgets work.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/in case of declaration we didnt do any mistake we are sneding the data from server to client in a specified format and that is what we are binding to UI declaration as mentioned below in updatefilterpanel we are modifiying and showing the format which works fine in chrome but not in IE.
var source = {
type: ‘POST’,
datatype: ‘json’,
datafields: [{
name: ‘ReportedDateTime’,
type: ‘date’,
format: ‘MM/dd/yyyy hh:mm tt’
}Hi arunthatham,
We cannot reproduce an issue with jqxGrid using the provided information.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.