Browser: Google Chrome Version 35.0.1916.153 m
Version: v9.1p_2014-06-10/Enterprise Deployment
Hi
I'm trying to use your EditPane+EditNode (de)serialization mechanism in conjunction with instances of a custom subclass MyListGrid of ListGrid. I intend there to be a separate EditPane for each MyListGrid instance which is responsible for serializing all the state (data and viewState) of its sole MyListGrid instance. It must also be able to reincarnate a clone of this instance which is always in exactly the same state after reincarnation as the original was before. A reincarnation consists of the following three EditPane calls:
var s11n = EditPane.serializeAllEditNodesAsJson()
EditPane.destroyAll()
EditPane.addPaletteNodesFromJSON(s11n)
On the larger scale, the serialized strings s11n generated by each EditPane are stored together with other information in a larger JSON structure which is serialized independently using a custom technique. Changing that situation is not relevant to the current problem.
My current problem is this: When I create two instances of MyListGrid, change the data and viewState (specifically, the column width) of one of them, and then reincarnate it, it appears to re-create the state (data and viewState) correctly.
BUT the serialization string produced does not need to be configured by overriding MyListGrid.updateEditNode() to contain any information about the viewState in order for this to work.
This seems to indicate that the viewState is somehow persisted elsewhere. That suspicion is supported by the fact that a subsequent test reincarnating the other instance of MyListGrid, without changing its state at all, causes its reincarnated clone also to take on the viewState of the first MyListGrid instance. This seems to indicate that a shared copy of the viewState of all instances of MyListGrid is somehow being persisted elsewhere.
Essentially, I want all the state of each MyListGrid instance to be entirely governed by its own EditPane, and to be entirely separated from and independent of the state of any other MyListGrid instance. I assume this should be achieved by storing the viewState along with the data in the EditPane serialization. But I think I also need somehow to disable the behind-the-scenes sharing/overriding of viewState that seems to be happening, and I don't know how to do this.
What do I need to do to accomplish my objective?
Thanks
Version: v9.1p_2014-06-10/Enterprise Deployment
Hi
I'm trying to use your EditPane+EditNode (de)serialization mechanism in conjunction with instances of a custom subclass MyListGrid of ListGrid. I intend there to be a separate EditPane for each MyListGrid instance which is responsible for serializing all the state (data and viewState) of its sole MyListGrid instance. It must also be able to reincarnate a clone of this instance which is always in exactly the same state after reincarnation as the original was before. A reincarnation consists of the following three EditPane calls:
var s11n = EditPane.serializeAllEditNodesAsJson()
EditPane.destroyAll()
EditPane.addPaletteNodesFromJSON(s11n)
On the larger scale, the serialized strings s11n generated by each EditPane are stored together with other information in a larger JSON structure which is serialized independently using a custom technique. Changing that situation is not relevant to the current problem.
My current problem is this: When I create two instances of MyListGrid, change the data and viewState (specifically, the column width) of one of them, and then reincarnate it, it appears to re-create the state (data and viewState) correctly.
BUT the serialization string produced does not need to be configured by overriding MyListGrid.updateEditNode() to contain any information about the viewState in order for this to work.
This seems to indicate that the viewState is somehow persisted elsewhere. That suspicion is supported by the fact that a subsequent test reincarnating the other instance of MyListGrid, without changing its state at all, causes its reincarnated clone also to take on the viewState of the first MyListGrid instance. This seems to indicate that a shared copy of the viewState of all instances of MyListGrid is somehow being persisted elsewhere.
Essentially, I want all the state of each MyListGrid instance to be entirely governed by its own EditPane, and to be entirely separated from and independent of the state of any other MyListGrid instance. I assume this should be achieved by storing the viewState along with the data in the EditPane serialization. But I think I also need somehow to disable the behind-the-scenes sharing/overriding of viewState that seems to be happening, and I don't know how to do this.
What do I need to do to accomplish my objective?
Thanks
Comment