question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear cell on cell editing

See original GitHub issue

I need to clear cell on cell editing if it’s value is 0.

        cellEditing:function(cell){
            var value = cell.getValue();
            if (value == 0){
                cell.setValue("", false);
            } 
        },

After cell.setValue() cellEdited callback is calling and trying to save empty value on server. How can i change cell value without calling cellEdited callback?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MusinAmircommented, Apr 12, 2018

Hey @olifolkerd You are a genius! 😃 I tried to store zero value as empty string and formatting it to zero, it’s works perfectly. This is exactly what I needed

1reaction
MusinAmircommented, Apr 11, 2018

Hey @olifolkerd I don’t know how i missed this, this is very useful!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear cells of contents or formats - Microsoft Support
You can clear formats from cells (e.g., number formatting), clear ... On the Home tab, in the Editing group, click the arrow next...
Read more >
Clear specified cell contents if value of another cell changes ...
1. In the worksheet you will clear cell contents based on another cell changes, right click the sheet tab and select View Code...
Read more >
Add, Edit, or Clear Cell Content - Smartsheet Learning Center
Select one or more cells and press Delete or Backspace to clear the current contents. You can also right-click a cell and select...
Read more >
Clear Cell Contents, Formatting, and Comments - Java2s.com
Select the cell or range Click the Home tab. Click the Clear button. Then click Clear All to clear contents and formatting. Click...
Read more >
VBA ClearContents / Clear Cells - Automate Excel
In VBA it's easy to clear cells or cell properties with the .Clear methods. VBA Clear Cells / Ranges. Type the following into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found