After using showView to change views on a content object (e.g., a layout cell) that contains a form with an editor control, the editor control no longer functions correctly for entering, setting, and retrieving data. Here is the code for my test page (using v4.1.1 of DHTMLX Suite):
[code]
[/code]Test 1:
- Click “Change View” button twice to change view and then return to default view.
- Cannot type into editor.
Test 2:
- Enter text.
- Click “Change View” button twice to change view and then return to default view.
- Editor appears blank.
- Click “Get Notes Value” button, it returns the text that was entered before changing view.
Test 3:
- Repeat Test 2.
- Click “Change Readonly” button.
- Typed text appears, but cannot be edited, indicating Readonly mode has been turned on.
Test 4:
- Repeat Test 3.
- Click “Change Readonly” button again.
- Text is now editable.
- Alter text.
- Click “Get Notes Value” button. Original text is returned.
Results for Tests 1-4 are the same when using the “Load Data” button instead of manually typing text.
Test 5:
- On fresh page load, click “Change View” button twice.
- Click “Load Data” button.
- Click “Get Notes Value” button.
- No data returned.
Test 6:
- Repeat Test 5.
- Click “Change Readonly” button.
- Text disappears.
- Click “Change Readonly” button again.
- Enter text or click “Load Data”.
- Click “Get Notes Value” button.
- No data returned.
- Click “Change Readonly” button again.
- Text disappears again.
From the tests I’ve performed, my impression is that multiple editor documents are being created in the process of changing views, and that the editor control is keeping references to the original editor document which can no longer be interacted with by the user.