Hello,
I have a problem with an editor grid with a combox grid field with a data source.
In the case when the combo is clicked and after that the button in a tool strip is clicked a stack overflow error will occur. In the case that there is something entered in the combo and then the button is clicked, the stack overflow error will not occur.
How can I avoid such an error?
Please try the testcase below I build for this: Note you will get a transport error after clicking in the combo because the test case cannot reach the data source. But the problem occurs also when the testcase can reach the data source.
Regards Thomas
I have a problem with an editor grid with a combox grid field with a data source.
In the case when the combo is clicked and after that the button in a tool strip is clicked a stack overflow error will occur. In the case that there is something entered in the combo and then the button is clicked, the stack overflow error will not occur.
How can I avoid such an error?
Please try the testcase below I build for this: Note you will get a transport error after clicking in the combo because the test case cannot reach the data source. But the problem occurs also when the testcase can reach the data source.
Regards Thomas
Code:
isc.VLayout.create( { "ID":"rootDaysLayout_6", "autoDraw":true, "width":"100%", "height":"100%", "autoDraw":true, "members": [ isc.ToolStrip.create( { "members": [ isc.Button.create( { "ID":"setDefaultCostCentreButton_6", "disabled":false, "overflow":"visible", "tabIndex":0, "title":"Click first in the combo below, then click here for too much recursion error", "showDisabledIcon":false } ) ] } ), isc.ListGrid.create( { "ID":"daysListGrid_6", "width":"100%", "height":"100%", "selectionType":"single", "canEdit":true, "editEvent":"click", "autoSaveEdits":false, "modalEditing":true, "fields": [ { "editorType":"ComboBoxItem", "ID":"daysCostCentreGridField_6", "displayField":"daysCostCentreGridField", "editorProperties": { optionDataSource:isc.DataSource.create( { "fields": [ { "primaryKey":true, "name":"number" }, { "name":"daysCostCentreGridField" } ], "dataFormat":"json", "dataURL":"ScComboBoxListGridFieldDataSource?viewNumber=6&id=dayscostCentreGridField", "recordXPath":"/resultData" } ), "displayField":"daysCostCentreGridField" }, "name":"daysCostCentreGridField", "canSort":false, "title":"Costcentre" } ], "data": [ { "daysCostCentreGridField":"North (1)", "generatedIndex":"1" } ] } ), isc.LayoutSpacer.create( { "height":"*" } ) ] } )
Comment