JS Error in NewRow with CellSelect mode using Home and End keys

5 replies. Last post: July 26, 2010 4:52 PM by Mike Dearman
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mike DearmanMember
 With focus in the New Row area (when editing is not active), pressing HOME or END keys cause a Javascript error - "Microsoft JScript runtime error: 'element.parentElement' is null or not an object"

It appears as though there is a problem getting the SelectedObject because its "element" property is null, so the internal calls fail to get parentElement.

 Here is the debugger view of the SelectedObject:

-  v46587 {...} Object
  tblName "Table1" String
  gridId "WebGrid1" String
  element null Null
  rowIndex 0 Number
  cellIndex 0 Number
  type "Cell" String

The call stack calls the below function which calls the mbb167 (obfuscated) function.

m78082:function() { return wg4cf54.mbb167() }

within the mbb167, the call failing is:

wg4cf54.m71c78(v46587.element.parentElement,vd6d80);

 

I have attached a sample showing this error.
To reproduce:

  1. Load sample
  2. Click into New Row area
  3. Press ESC to stop editing but leaving focus in New Row
  4. Press HOME or END keys
  5. Within the keydown event and its internal calls, the grid throws the error.

Thanks,

Mike

All times are GMT -5. The time now is 3:47 PM.
Previous Next