-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Type='Date' not working in IE #2595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't believe this is an issue with ui-grid. If you want a consistent experience across browsers, you should consider implementing your datepicker with jQuery or Angular-ui (ui-bootstrap). Sources: |
Gotcha. I'm still fairly new to angular so I assumed when defining type="date", it was using some pre-defined cell template that was set by ui-grid. I looked into using jQuery, but the grid is in a modal, so I had some challenges. I'll look into Angular-ui datepicker. Thanks for the reply. |
Be careful here - there are a number of issues open related to this - #2279, #2321, #2196, #1785, #2290. They all come down to that ui-grid uses native html5 editors and widgets, and not all browsers support these as yet. What would be nice would be to implement bootstrap widgets instead (as a feature), but that is actually kinda hard, and is why people haven't done it. Any new editor directive needs to honour the EDIT_START and other EDIT events - refer the edit tutorial that briefly mentions this, and look in the edit feature itself to see the directives that have been created for each of the edit widgets. |
We're currently using an editable date field in our project. The date picker pops up properly on Chrome and Firefox but noticed it doesn't work in IE (which is necessary for us). When editing the field, it acts as a regular text field in IE instead of displaying the date picker tab.
This is the field:
{ field: 'ApprovalDate', displayName: 'Approval Date', type: 'date', cellFilter: 'date:"yyyy-MM-dd"', width: 144 }
I searched and noticed the ones in this tutorial don't work in IE as well:
http://ui-grid.info/docs/#/tutorial/201_editable
Also, is there any way to disable the "X" and the up/down icons when editing the date field. I've attached a screenshot showing what I'm talking about.
The text was updated successfully, but these errors were encountered: