Hi,
I have added an updaterow method to my webgrid as it was instrcuted in this base knowledge http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=9966 . When I run my application, it throws the following message:
Object reference not set to an instance of an object.
{
case DataChanged.Modified:
// this.UpdateDataMap(e.Row);
updatedatamap.UpdateMddDataMap(Convert.ToInt32(e.Row.Cells.FromKey("LookupRDBID").Value),
e.Row.Cells.FromKey("MapField").Value.ToString(),
e.Row.Cells.FromKey("WMDvalue").Value.ToString(),
e.Row.Cells.FromKey("VariableText").Value.ToString(), e.Row.Cells.FromKey("ElementName").Value.ToString(),
e.Row.Cells.FromKey("PTKVariable").Value.ToString(), e.Row.Cells.FromKey("CCP").Value.ToString(),
Convert.ToDateTime(e.Row.Cells.FromKey("DateModified").Value), Convert.ToDateTime(e.Row.Cells.FromKey("DateDeleted").Value),
Convert.ToBoolean(e.Row.Cells.FromKey("IsLock").Value), e.Row.Cells.FromKey("MDDFileName").Value.ToString());
case DataChanged.Unchanged:
}
I hit the error " 'Element' is null or not an object" on this same line of code. gs.Element is undefined. I have and an UltraWebTab that contains an UltraWebGrid that contain a WebCombo. This error occurs when the UpdatePanel was added, with the panel it does not occur.
if(!evnt)
evnt=event;
if(typeof(igtbl_gridState)!="undefined" && igtbl_gridState)
for(var gId in igtbl_gridState)
var gs = igtbl_gridState[gId];
var scrElem = evnt.srcElement?evnt.srcElement:evnt.target;
if(!ig_isAChildOfB(evnt.srcElement,gs.Element))
if (gs.Element.getAttribute("elementMode")=="resize")
It's really hard for us to advise further, since the scenario is complex and there are many controls involved in it. I can suggest some ideas that may alleviate the problem like
- use our version of Ajax Panel - WebAsyncRefreshPanel instead of UpdatePanel,
- use the built-in AJAX in Grid or Tab instead of UpdatePanel),
If these do not work for you, I guess, the best way to proceed is to send a small subset of your project reproducing the issue to our Developer Support folks - they will surely be able to provide additional clues/solution when they see the repro
Developer Support can be reached via this link:
http://ko.infragistics.com/gethelp/default.aspx
Hello All,
I know, I am posting very late to this thread.
I am facing same problem with webgrid control.
Every mouse movement this error generate and viewed in firefox error console.
For a same location of global "igtbl_globalMouseMove(evnt)"and line if (gs.Element.getAttribute("elementMode")=="resize")
Please let me know, any work around present for eliminate this error.
I am using infragistics grid with 6.3 version.
Thank you in advanced.
Move combo boxes that are binded to grid outside the update panel.
Then, you will not get that error.