Every attempt to edit a gridcell containing a dropdownbox shows the following errormessage:
cStyle is undefinedhttp://dev:8081/WebResource.axd?d=y5sNjaUn08fM5vmbZh5LFsUDYpllPOqC6PSRSKBTrKwcp4_8oRj0xkBSgbKNMmHaHk7e8VKMIu7sAOZ4X_y8L1zqLZa5schBTAQ3PohiS7SMDNFyKmHHNj7qO15Lfmb_u6MbdYtLc3FNDDKWL9HekVAOeYhD8wjS3wRNDEjJqoE1&t=633700440041007424Line 845
We too are getting this error? Did you have any look solving it?
Unfortunately, no.
The only hope at this time is a workaround. I did not know a version / release of WebGrid that does not contain such a Killerbug. So a rollback is not possible.
Thanks for the follow-up. While I will do my best at my side to continue working on this item and to reproduce the issue, I still believe the best / fastest and most reliable way to solve this is to contact Developer Support directly at:
http://es.infragistics.com/Support/#Overview
It is just the problems like that are typically hard to resolve over peer-to-peer forums.
Thanks.
Hi again,
I cannot reproduce so far, but the problem is in the Javascript function
function igtbl_editList(g,v,r,col,cElem) in Line 764;
In the working testproject the variable g.IsXHTML is true.In the not working Project it is false.
So if g.IsXHTML is false cStyle will never be initialised.
What is g.IsXHTML?
How to set this value to true?
Are there changes in behavior to previous versions?
svsde said:What is g.IsXHTML?
if(ig_csom.IsIE) { cStyle=cElem.currentStyle; } else { cStyle=igtbl_getComputedStyle(cElem); }
before the line:s.height=(cElem.offsetHeight - igtbl_parseInt(cStyle.borderTopWidth) - igtbl_parseInt(cStyle.borderBottomWidth)) + "px";(only this line was changed in this function in the hotfix 2039)
s.height=(cElem.offsetHeight - igtbl_parseInt(cStyle.borderTopWidth) - igtbl_parseInt(cStyle.borderBottomWidth)) + "px";
Hi Tobi,
the xhtml DOCTYPE declaration was already added.
But your tip does the trick.
I' ve furthermore coded a dynamic solution to implement your workaround.
Dim _page As System.Web.UI.Page = DirectCast(HttpContext.Current.Handler, System.Web.UI.Page) Dim _placeholder As New Literal _placeholder.ID = "INFRAGISTICS_WORKAROUND_BUILD_2039" _placeholder.Text = "<script type=""text/javascript"" src=""./../jscript/infragistics_workaround_build_2039.js""></script>" _page.Form.Controls.AddAt(0, _placeholder)
Thanks very much for your Help!
Hi svsde,
Where would you add this code at? Would it be in the pages load or prerender event? I added it to the prerender but that is causing an object reference error.
Thanks for the help.
mroyalty2002 said: Where would you add this code at?
Where would you add this code at?
Hi mroyalty2002,
so it seems the forum is today available.
I put the code into Page_InitComplete.