Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
15.2 : value of DatePicker not returned to grid if localized/region/dateformat
posted

 15.2.20152.1027

we recently upgraded from 14.2 (latest) to 15.2 and faced some issues with the datepicker. We use igGrid in different regions and languages. 

If a date is selected using the datepicker in the filterrow, strange values (in IE) or nothing (chrome) got written back to the filter. This happens, if a dateformat different to default is set. (grid/datepicker is regionalized)

The issue happens in the datepicker onClose handler (infragistics.lob.js). This function takes a formatted string (val) and tries to get a new Date(val) out of it, which does only

work, if it is formatted properly (only default format ;) ).

original code:
 onClose: function (val) {

var date;
self._currentInputTextValue = self._editorInput.val();
date = new Date(val);
if (self.options.enableUTCDates) {
date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
}
self._processValueChanging(date);

self._processTextChanged();
self._editorInput.focus();
}


our temp fix:

onClose: function (val,inst ) {
var date;
self._currentInputTextValue = self._editorInput.val();

date = val == "" ? null : new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay, 0, 0, 0,0);//new Date(val);
if (self.options.enableUTCDates) {
date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
}
self._processValueChanging(date);

self._processTextChanged();
self._editorInput.focus();
}



At the end of the event handlers someone at infragistics wrote : "// TODO refactor that function later"  :D

Please fix this or we will think about billing you some support hours ;) 

  • 17590
    Verified Answer
    Offline posted

    Hello Martin,

    Thank you for posting in our community.

    In version 15.2 we introduced new editors in Ignite UI toolset. Our main goal was to provide you with more robust feature and excellent performing editor widgets. In regards to this we are constantly working for improving the quality of our new editors and we are adding value to these editors  every release of 15.2 that we introduce.

    Could you please let me know which version of Ignite UI 15.2 Vol. are you currently using? The latest service release currently is 15.2.20152.2081. If you are using any version different than the latest could you please try downloading it from our web site and check whether the issue is still reproducible and let me know. This could be achieved by following these steps:

    1) Log in with your credentials on our web site http://es.infragistics.com/

    2) Click Support/Account tab in the top right corner of the page

    3) Select View Account Info. This will lead you to My Keys & Downloads page.

    4) Select your product from the Product List

    In the Service Releases tab you will find the latest version available.

    Additionally, I created a small sample illustrating your scenario and I was not able to reproduce the behavior that you are describing. I am attaching this sample for your reference. Could you please test it on your side and let me know what is the result. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me along with steps to reproduce. This is going to be highly appreciated and will help me to investigate this further.

    Please feel free to continue sending updates to this case at any time.

    igGridDatePicker.zip