Comments (3)
we use the addItemToDatagrid
in our project without any duplicates. You should check that your loop is only looping the necessary time. The way that addItemToDatagrid
works is that it will the following code internally
this._dataView.insertItem(row, item);
// refresh dataview & grid
this._dataView.refresh();
and typically, if your item
does not have a unique ID, I assume that SlickGrid will throw an error saying that your dataset must have unique ids. So I'm wondering if having exact duplicate (which you mention) is even possible. I think no, so please check your data and your loop.
Another method you can try is a new method that I added some time ago called addItemsToDatagrid
which will do the loop itself (it simply calls addItemToDatagrid
for the length of the items array passed).
I must also say that unless I have a way to replicate the issue, I cannot really help.
from angular-slickgrid.
Problem was on my site. I set dataset and called addItemToDatagrid at the same time.
from angular-slickgrid.
Glad you found the problem
If you like the library, you can also up vote ⭐️
Thanks for using it
from angular-slickgrid.
Related Issues (20)
- Frozen columns do not fit in viewport HOT 3
- The Multi-column tri-state sorting option doesn't work HOT 2
- Boolean column with filter collection and render html not working, displays true/false HOT 7
- Update Step By Step Install Wiki page HOT 10
- Example 22 keeps formatter components alive outside of grid HOT 20
- Example 22 shows temp ng-template being rendered for a short period
- cell highlighted stays on the same position even when filtered HOT 1
- Attach Angular Component in AsyncPostRender and keep it running HOT 2
- I have issues with Editor text box. HOT 6
- I am getting error when I use multipleSelect . "Cannot find type definition file for 'trusted-types'. " HOT 9
- Shared module gridOptions seetings not preserve in page module HOT 15
- All items in grid appear highlighted after adding an item to the grid HOT 9
- Incorrect dataContext is passed in `onSave` callback using composite editor HOT 6
- Polyfills ERROR TypeError: Function.prototype.toString requires that 'this' be a Function at Boolean.toString (<anonymous>) HOT 25
- Custom header and footer templates, like for Aurelia
- No data warning stays if data lazy loaded and gridOptions changed HOT 12
- Angular slickgrid upgrade does not working HOT 3
- between Operator HOT 1
- Angular esbuild error on DomPurify with rowDetailView and no pre/post template HOT 5
- CSP compliance HOT 5
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 angular-slickgrid.