Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18780 closed defect (patchwelcome)

dojox/grid/DataGrid startup method error in IE11 on Windows 7

Reported by: vincentt126 Owned by: Evan
Priority: undecided Milestone: 1.12
Component: DojoX Grid Version: 1.9.6
Keywords: Cc:
Blocked By: Blocking:

Description

I have a complex dojo web application which uses dojox/grid/DataGrid to get user input. But the javascript breaks when calling startup method of dojox/grid/DataGrid. This error only happens in IE11 on Windows 7, but neither in IE11 on Windows 10, nor Firefox or Chrome. I tried it in IE9 on Windows 7. When the error happens, it will shut down IE9.

I can submit a screenshot of this error in IE debugger. If you want me to collect additional debugging information, please instruct me how to do it because I'm a newbie to dojo.

Attachments (1)

0.B12.gif (17.3 KB) - added by vincentt126 3 years ago.
Screenshot of IE11 debugger when the error happens.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by vincentt126

Attachment: 0.B12.gif added

Screenshot of IE11 debugger when the error happens.

comment:1 Changed 3 years ago by vincentt126

Code snippet that uses DataGrid?.startup.

this._selectedGrid = new DataGrid?({

canSort: function() {

return false;

}, selectionMode: "extended", store: this._selectedStore, structure: layout, textDir: this.textDir

});

this._selectedDataGrid.appendChild(this._selectedGrid.domNode); this._selectedGrid.startup();

Last edited 3 years ago by vincentt126 (previous) (diff)

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Hi Vincent,

Thanks for the feedback, and your interest.

Unfortunately, given that the dojox/grid/DataGrid has mostly been deprecated in favor of dgrid ( http://dgrid.io/ ), I'm not sure that anyone is going to get around to creating a fix anytime soon as it's not a high priority for us. If you want to create a pull request per the guidelines at https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md , we'll review and accept a fix if you come up with one. Alternatively, you could talk to our team at SitePen? about commercial Dojo support, if you would like to fund a fix for this issue ( https://sitpen.com/support/ ).

Sorry I don't have a better answer for you, but I want to be realistic about what our community is likely to fix vs. not fix on their own time, so you can decide quickly how you would like to proceed. As such, I'm going to resolve this as patchwelcome, which means we would be happy to review a fix and land it in the next version of Dojo if someone else will do the leg work to create and test the fix. Thanks!

comment:3 Changed 3 years ago by vincentt126

Thank you Dylan for your answer. What you said is very useful information. I will report back to my manager. See what's their decision.

comment:4 Changed 3 years ago by Jan86

Hi Vincent, We have the same problem in our complex dojo application and we found the following workaround for this issue. It seems IE11 has problems with the autoRender functionality. In our case it works by setting the autoRender property to false.

this.m_Grid_DataSheet_cat = new TreeGrid?({

treeModel: this.m_TreeModel_DataSheet_cat, structure: layout, region: "center",

autoRender:false,

selectable: true,

defaultOpen: false, "class": "utDatasheet", onClick: djLang.hitch(this, function () {

if (this.m_IsEditable) {

this._addUtAttributeOfSelectedItem();

}

})

});

Note: See TracTickets for help on using tickets.