Comments (5)
With the method
editable.load({"metadata": metadata, "data": data});
you are redrawing the table with the object "data" you put in. Are you sure that the variable data contains the updated values of the row you have modified?
Check that value, or another solution could be to call method "refreshGrid". So, after you have appended a new row write only:
editable.refreshGrid()
from editablegrid.
What do you mean by append a row? In which context? Can you post a sample code of what you are trying to do?
from editablegrid.
Example code:
var editable = new EditableGrid("editable_id");
editable.append(2, {"selected": false, "name": "", "btn":`<button class="btn" onClick="openModal(this)" id=${maxId_creator}><i class="fa fa-edit"></i></button>`});
Set a value or id for the html button:
function openModal(button) {
button.id = "button.id";
}
from editablegrid.
Did you do something on events "tableRendered" or "tableFiltered" that could cause a redraw of the table, resetting all the buttons?
from editablegrid.
I actually do I think. I use these functions afterwards:
editable.load({"metadata": metadata "data": data});
editable.renderGrid(...);
But why are only the buttons resetted but boolean, integer and string cells unaffected? And what would be the alternative? Because I want the table to show newly added rows.
from editablegrid.
Related Issues (20)
- version 2.0 documentation
- Nested Json
- How to combined into existing data table.
- editablegrid.js at line 556
- 'tablecontent' update javascript capture event
- How to manually refresh grid
- Source data not updated when change data, click remove or duplicate button HOT 4
- Multiple search
- Tab navigation Issue HOT 1
- Jquery autocomplete inputs - combo Box
- How to send my own product id for update records HOT 10
- Filter specific columns on displayed grid HOT 1
- Different select options for each row? HOT 2
- Cyrillic characters
- getRow passes invalid selector to JQuery
- cancleEditing and applyEditing missing this.
- Enter hh:mm:ss HOT 1
- Insert an image according to the field value
- dynamically update metadata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editablegrid.