[HELP WANTED] How can I prevent clearing the insert boxes on fail?
See original GitHub issueHello,
I have read the issue #190 and was able to replicate it. I’m using the PageLoadingStrategy
and want to prevent grid from clearing the insert boxes on fail. I have replaced the finishInsert
function.
But even after return
something clears the insert boxes. I want to keep input values there and allow user to fix them instead of the typing them again.
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Lock or unlock specific areas of a protected worksheet
Click the Protect Sheet button to Unprotect Sheet when a worksheet is protected. If prompted, enter the password to unprotect the worksheet. Select...
Read more >Excel Data Validation Tips and Troubleshooting - Contextures
Click the Developer tab on the ribbon, and click Insert; Click the Combo Box in the Form Controls; On the worksheet, drag to...
Read more >Get help if you are unable to pay for storage - Google One Help
Under "Clean up space," click View. Under the category that you want to manage, click Review and clean up. Select the files that...
Read more >Data validation in Excel: how to add, use and remove - Ablebits
Among other things, you may want to allow only particular data type such as ... Check the Show error alert after invalid data...
Read more >Excel VBA Error Handling - All You Need to Know!
Insert Message Box at some place in the code and highlight values/data that can help understand if eberything is going as expected. Instead...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/tabalinas/jsgrid/blob/3ca96b5d87a417e1a64ef04bfc689e90ef2b6d3a/src/fields/jsgrid.field.control.js#L182
Basically, it’s not a load strategy that clears the insert row, but the
control
field (insert button handler). So you can redefine the handler of this button, or justreject
the insertion deferred instead of resolving it in case of failure.Hi @tabalinas can we do this for update also? as you suggested i redefined insert and update button controller. For inserting when insert fails it prevents from clearing inputs. But i am not able to achieve this in case of update. When update fails if resolves previousItem but i want to do same as insert, don’t want to clear the input.
can you help me out here?