Hi,
I have a grid with an "Apply Defaults to All" button which updates all of the date and score values for each row in the grid. However when I click the "Undo" button (which reverts the transactions to the previous values) the date values are reverted to a weird format.
E.g.
before: 12/24/1998
after: Thu Dec 24 1998 00:00:00 GMT-0800 (Pacific Standard Time)
Please see attached example.
1) click "Apply Defaults to All" button.
2) click "Undo"
Many Thanks,
Rick
Hi Hristo,
I think there's a bit of confusion here. I am currently referencing jQuery 1.11.1 and that's when the error presents. The files you sent (in which the example works) reference previous versions...
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
If you try your example using 1.11.1 the error should present for you.
So I'm suspecting that I in fact cannot use the latest version of jQuery because of this issue. Can you confirm if this is the case and if you know of the latest version of jQuery I can go with?
Many thanks,
Hello Rick,
You're quite right - when using 14.2 it is recommended to reference jQuery 1.11.1 as stated at http://es.infragistics.com/support/supported-environments
Please let me know if you have further questions on the issue, I will be glad to help.
1) I found the problem. Try using jquery 1.11.1 and you should see the issue.
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
Can you tell me what are the best versions of jquery for IgniteUI 14.2? Are they the ones you submitted with your example?
2) Works great, thanks!
Please find answers to your questions below:
1) When I try to run the example in IE11 the grid will not even load AND JavaScript runtime error
IE has issues loading the required IgniteUI javascript files from the CDN, as you have referenced them. Save the files locally and reference them from your local machine and the grid will load fine in IE. I did not experience the JavaScript runtime error, which is most probably also caused by loading from CDN failure.
2) after clicking the Undo button, the Redo button has no effect.
When you use the button to update all cells the setCellValue method is used, so later when you call the OnRedoClick function transaction.type returns "cell". However you were handling only the case when transaction.type = "row", this is wht nothing happens. Youre OnRecoClick function will look this to handle both cell and row edits:
switch (transaction.type) { case "cell": grid.igGridUpdating('setCellValue', transaction.rowId, transaction.col, transaction.value); break;
case "row": grid.igGridUpdating('updateRow', transaction.rowId, transaction.row, null, false); break;}
I have modified the sample following the above mentioned corrections. I have included only the necessary Ignite UI javascript files just to keep the sample small in size and referenced them locally. Please run it in IE 11 and let me know if you still experience issues.
Additionally, after clicking the Undo button, the Redo button has no effect.
Thanks.