Hi there,
I have a issue facing a datasource update which is called without a manual sender.
In my case i have a TreeGrid on the left and a Layout with a Listgrid on the right side. The ListGrid on the right side has a Datasource and can be edited by the user. The TreeGrid on the left is like a navigation. After editing something in the ListGrid the user will be asked if he wants to save the recent changes. The ListGrid/Datasource of the ListGrid also handles the save/update of any items in the ListGrid. This update is fired if the user hits enter or presses a button on the right side named "save" by calling the endEditing on the listgrid.
The problem starts that, the update/save event of the datasource is called without interaction on the ListGrid. If the user edits a element in the ListGrid and the editor-component of the field stays open the user can switch the menu on the left. With the event of the click on the TreeGrid, the information that there are some pending changes on the ListGrid are made is transfered to the server, so the user will get asked if he wants to save the changes. This we are displaying in an Ask-Box like "isc.ask("Do you want to save");". In the background i can see, the pending changes (the formItem is still visible), but in the console i can see, that the update of the datasource is called.
So neither the user ends the entry with enter nor does the server calls something like endEditing to the Listgrid. I have tried to reproduce this issue in a stand-alone page, but it wasn't possible.
I have generated a log from the console and can point to the line where this request of the datasource is started. Because the debug-log is quite large i couldn't upload it here so i have put it here: http://pastebin.com/AFnmhadW
The change is detected in line 6336 and after this the update begins and therefore it's redirected to the datasource update.
Could you give me any advice, why the datasource update is fired? I think without endEditing the current edit in the listgrid the update should not be fired.
i'm currently working on SmartClient_v100p_2015-01-13_Pro and this hapens in all browsers
I have a issue facing a datasource update which is called without a manual sender.
In my case i have a TreeGrid on the left and a Layout with a Listgrid on the right side. The ListGrid on the right side has a Datasource and can be edited by the user. The TreeGrid on the left is like a navigation. After editing something in the ListGrid the user will be asked if he wants to save the recent changes. The ListGrid/Datasource of the ListGrid also handles the save/update of any items in the ListGrid. This update is fired if the user hits enter or presses a button on the right side named "save" by calling the endEditing on the listgrid.
The problem starts that, the update/save event of the datasource is called without interaction on the ListGrid. If the user edits a element in the ListGrid and the editor-component of the field stays open the user can switch the menu on the left. With the event of the click on the TreeGrid, the information that there are some pending changes on the ListGrid are made is transfered to the server, so the user will get asked if he wants to save the changes. This we are displaying in an Ask-Box like "isc.ask("Do you want to save");". In the background i can see, the pending changes (the formItem is still visible), but in the console i can see, that the update of the datasource is called.
So neither the user ends the entry with enter nor does the server calls something like endEditing to the Listgrid. I have tried to reproduce this issue in a stand-alone page, but it wasn't possible.
I have generated a log from the console and can point to the line where this request of the datasource is started. Because the debug-log is quite large i couldn't upload it here so i have put it here: http://pastebin.com/AFnmhadW
The change is detected in line 6336 and after this the update begins and therefore it's redirected to the datasource update.
Could you give me any advice, why the datasource update is fired? I think without endEditing the current edit in the listgrid the update should not be fired.
i'm currently working on SmartClient_v100p_2015-01-13_Pro and this hapens in all browsers
Comment