We use the Eclipse SWT Browser emulating IE11 in our application for reasons. We want and need to change that from IE to something else and MSEdge seems like the most likely choice. However, when we do that the Grids and Tree Grids never finish loading. The onXLE event never happens and the grid configuration that is situated after that in the Javascript code never happens either. All of this works fine in true MSEdge and in the SWT Browser emulating IE11.
We are and always have been using the XML option. I’ve tried switching to JSON and with that in place the onXLE event happens but I still have not managed to see a grid in the results.
Given that we have hundreds of these grids and tree grids in the application a simple solution that does not require changing all of them would be appreciated.
We are using DHTMLX V5.
thanks
If i get it right the treegrid works well in MSEdge and Eclipse SWT, but fails in the Eclipse SWT emulating the IE11.
In this case most probably the problem is with the Eclipse SWT emulator, as originally everything works well.
Please, check the browser console for any errors in your browser console for more details of the problem.
Also please, check if your application works correctly in the original IE11, if it is possible.
Thank you but it’s actually the other way around, it has been working in IE11 mode for many years but we need to move to another browser. It is in MSEdge mode that it’s not working. To clarify, this works in true IE and MSEdge browsers, it is just in the SWT Browser emulating MSEdge that it does not.
Unfortunately the SWT browser itself is not supported officially by the dhtmlx, especially the specific modes of that browser.
Could you please, priovide a complete demo or a demo link, with your dhtmlxTreeGrid initialization so it could be tested locally.
Four years later, I reply. In the interim, we decided to just stay in IE mode but now I am taking another look.
The sample I am about to provide is admittedly not the production version but it does demonstrate the issue, in the SWT browser emulating Edge. In true Edge, this works. In the SWT browser emulating Edge it does not. We’re using SWT 4.20, the last version that runs under Java 8.
//grid intilization
mygrid = dhxLayout.cells(“a”).attachGrid();
mygrid.setImagePath(“jsp:expressionactionURL</jsp:expression>/scriptlib/dhtmlxSuite/codebase/imgs/”);
mygrid.setHeader(“Field,Description,Type,Length,Hidden”);
mygrid.attachHeader(“,#text_filter,#select_filter,#select_filter,#select_filter”);
mygrid.setInitWidthsP(“15,*,15,15,15”);
mygrid.setColAlign(“left,left,left,right,center”);
mygrid.setColTypes(“ro,ro,ro,ro,ro,ro”);
mygrid.setColSorting(“str,str,str,int,str”);
mygrid.attachEvent(“onXLS”,function(){statusBar.setText(“Loading Data…”);window.status = “Loading Data…”;
});
mygrid.attachEvent(“onRowSelect”, onRowSelect);
mygrid.attachEvent(“onRowDblClicked”, rowDblClickFunction);
mygrid.enableContextMenu(rightClickMenu);
mygrid.init();
mygrid.enableSmartRendering(true,100);
mygrid.enableMultiselect(false);
mygrid.enablePreRendering();
mygrid.setEditable(false);
var varURL = “jsp:expressionactionURL</jsp:expression>/ESS_HR_Human_Resources_User_Defined_Fields_Maintenance_Controller?action=getRowsAsXML”;
var responseText = “”;
new Ajax.Request(varURL,
{
//parameters: varParams,
onSuccess: function(response){
responseText = response.responseText;
statusBar.setText(“Data loading”)
mygrid.parse(responseText) ;
statusBar.setText(“Data loaded”)
},
onFailure: function(response){
responseText = response.responseText;
}
}
);
And the XML in responseText is
PHR001
Health Insurance
CODE
10
N
PHR002
Cell Phone
PHONE
10
N
PHR003
Mothers Phone #
NUMBER
10
N
PHR004
NAME
TEXT
30
N
PHR005
Date for test
DATE
8
N
PHR006
Business Telephone
NUMBER
10
Y
PHR007
Social Security Number
NUMBER
10
Y
PHR008
USER DEFINED
TEXT
30
Y
PHR009
USER DEFINED
TEXT
30
Y
PHR010
USER DEFINED
TEXT
30
Y
PHR011
USER DEFINED
TEXT
30
Y
PHR012
USER DEFINED
TEXT
30
Y
PHR013
USER DEFINED
TEXT
30
Y
PHR014
USER DEFINED
TEXT
30
Y
PHR015
USER DEFINED
TEXT
30
Y
PHR016
USER DEFINED
TEXT
30
Y
PHR017
USER DEFINED
TEXT
30
Y
PHR018
USER DEFINED
TEXT
30
Y
PHR019
USER DEFINED
TEXT
30
Y
PHR020
Contribution Group
CODE
10
N
PHR021
Member ID
NUMBER
9
N
PHR022
Employment End Reason
CODE
2
N
PHR023
Scheduled Hours Per Day
CODE
5
N
PHR024
Employment Status
CODE
2
N
PHR025
Employment Begin Date
DATE
8
N
PHR026
Employmnet End Date
DATE
8
N
PHR027
USER DEFINED
TEXT
30
Y
PHR028
USER DEFINED
TEXT
30
Y
PHR029
USER DEFINED
TEXT
30
Y
PHR030
USER DEFINED
TEXT
30
Y
PHR031
USER DEFINED
TEXT
30
Y
PHR032
USER DEFINED
TEXT
30
Y
PHR033
USER DEFINED
TEXT
30
Y
PHR034
USER DEFINED
TEXT
30
Y
PHR035
USER DEFINED
TEXT
30
Y
PHR036
USER DEFINED
TEXT
30
Y
PHR037
USER DEFINED
TEXT
30
Y
PHR038
USER DEFINED
TEXT
30
Y
PHR039
USER DEFINED
TEXT
30
Y
PHR040
USER DEFINED
TEXT
30
Y
PHR041
USER DEFINED
TEXT
30
Y
PHR042
USER DEFINED
TEXT
30
Y
PHR043
USER DEFINED
TEXT
30
Y
PHR044
USER DEFINED
TEXT
30
Y
PHR045
USER DEFINED
TEXT
30
Y
PHR046
USER DEFINED
TEXT
30
Y
PHR047
USER DEFINED
TEXT
30
Y
PHR048
USER DEFINED
TEXT
30
Y
PHR049
USER DEFINED
TEXT
30
Y
PHR050
USER DEFINED
TEXT
30
Y
To clarify, the production version uses the load() method to contact the controller and bring back the XML in one step. I changed that to a separate Ajax call and parse() method to split one step into two and so that I could confirm the returned XML looked good. In both cases, load() or parse(), it never seems to complete in SWT and I never see the new message “Data loaded”.
Unfortunately the SWT browser itself is not supported officially by the dhtmlx.