Replies: 1 comment 5 replies
-
The thing you need to be aware in SlickGrid is that the DataView is optional and in all of my libs I chose to always use it. So going back to the fact that it's optional, SlickGrid can be used by itself and for that reason some methods had to provide different name to avoid conflicts. In SlickGrid we call To update the data, with the DataView you use For the So I think the confusing part might be the fact that SlickGrid sometime have similar functions but they had to be named differently so I would guess it was hard to come up with different names representing the same kind of functionality. Also worth to know that some variable usage are not entirely consistent across the project, e.g. sometime we see |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I've recently integrated SlickGrid into a project and found myself a bit confused by the terminology used in the DataView component, specifically around 'items', 'cells', and 'rows'. Initially, I assumed 'items' referred to 'cells', but after diving deeper, I realise this might not be the case. I'm hoping someone can help clarify these concepts for me.
From the DataView documentation, I understand that:
However, there are a few points in the documentation and codebase that I find conflicting or unclear:
Terminology of 'Item': The term 'item' suggests a singular entity, which led me to think of it as a 'cell'. The definition of an 'item' isn't explicitly stated in the DataView Getting Started, and follows an introduction of 'Rows' referring to what I now believe 'Items' might truly refer to. Could you confirm if an 'item' indeed represents a full row in the underlying dataset?
Function getItems(): The code comments describe this as "/** Get all DataView Items */". I therefore initially thought this referred to all cells in the visible grid. Is this actually retrieving the entire array of rows in the underlying dataset? If so, how does this work efficiently with very large datasets?
Updating Cell Values: For spreadsheet-like functionality where cell values need to be updated, what is the recommended approach if not using updateSingleItem (assuming this refers to rows, not cells ?)?
Clarification on 'id' vs. 'Index': Is 'Index' referring to numerical row positions starting from 0, or does it relate to the 'id's assigned to each row (item) (like in pandas)?
Any insights into these areas would be greatly appreciated, especially regarding efficient cell updates and large dataset handling in a custom DataView implementation.
Thank you so much for your time and assistance, I really appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions