Opened 7 years ago
Closed 6 years ago
#17232 closed defect (patchwelcome)
Enhance Grid crash onKeyPress when there is no data in grid.
Reported by: | asad.matrix | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
dojox.grid.EnhancedGrid? ver-1.6 Dojo Enhance Grid crash on KeyPress? event when there is no data on grid. Steps: 1.Open Enhance Grid (Containing no data). 2.Click left mouse button to focus on grid. 3.Now press any key.
There is some errors occur on console: 'content' is null or not an object. 'header' is null or not an object.
This is a code which invoke on keypress. doKeyEvent:function(e){ var _4=this.focus.focusView; _4.content.decorateEvent(e); if(!e.cell){ _4.header.decorateEvent(e); } Please fix this defect and send me the patch for it.
Note: See
TracTickets for help on using
tickets.
DojoX Grid and EnhancedGrid? are deprecated in favor of dgrid and gridx.
You should upgrade your code to use one of those two grids.
We will consider patches to the old DojoX Grid code though.