Everytime I visit a sidebar view with grid then to another sidebar view with grid, the 2nd view would break and terminate unexpectedly. My terminal would show up "terminate called after throwing an instance of 'KFString::const_iterator::OutOfBounds'". I have also track line by line and found the problem comes from GridView.changeDataset.
I have tried all sort of way to prevent this problem like slicing the array into specified size, calling changeDataset in onSelectView instead of updateView. But yet get a solution to solve it.
If there is anyone who faces the same problem and managed so solve it, pls give a helping hand. Thanks in advance.
Ok, I solved the problem. I didn't know that all SidebarView children elements are created side by side, therefore specifying the same id for different SidebarView page will conflict. I have rename the all ids to unique.