Hi I have creating WebCombo and UltraWebGrid dynamically. But in IE 7 an error ocurr when a post back is fired.
oCombo._unloadCombo();
Thank you for your help.André
Assembly = Infragistics35.WebUI.WebCombo.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
I tried the scenario you mention and did not have any issues. Are you using our WARP or a MS Update Panel? Is this Sharepoint? What control is initiating the postback and through what action? Are you recreating these controls everytime?
Tanks, i have Sharepoint -> WebPart -> UpdatePanel -> UltraWebGrid -> WebCombo.
The entire tree of controls is recreated in every postback on CreateChildControls.
A have two columns in grid with WebCombo, if a use only one everything is ok. But if a open more than one, an javascript error occur after any postback.
It seems to do something with this line of code:
webCombo.getGrid().Bands[0].curTable = webCombo.getGrid().Element;
in the Infragistics.js file. When the combo is attempting to dispose of itself it seems to have already been disposed resulting in the exception. To work around the issue I would redirect the scripts employed in the following KB article:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6158
This will tell the control to use the local copies of the scripts and not the embedded ones. This will allow you to modify the script to work in your scenario. Go to function igcmbo_initCombo in the ig_webcombo3_1.js file and wrap the oCombo._unloadCombo() method call with an if statement like so:
{
}
This is essentially a hack and may not resolve all issues since the interaction between the webcombo and our webgrid is fairly complex and the advanced ajax implementation of the webcombo does not seem to be compatible with the scenario presented.
Also on a side note I had to take the following steps to get the application to run:
I get the following error message when running the sample:
WebCombo has the Editable property set to True; therefore it must have equal DataTextField and DataValueField to be used as an editor in an UltraWebGrid.
After I set DataTextField and DataValueField to the same value, I get the following JavaScript error:
I resolved that by changing src="../js/blahblah" to "js/blahblah".
I also had to go into your JavaScript, Infragistics.js, and change the path to the page for the xml request. At this point, I was able to reproduce the issue you mention but was getting additional columns. So I modified the code to create columns only one time but to create the webcombo's on ever postback. The issue was still reproducing so I tested in later versions and had the same problem. I then pulled out the grid and the combos seem to have no issue by themselves.
Tanks, but a solved the problem. I only not add the WebCombo into the UpdatePanel and everthing is working.
UltraWebGrid grid = new UltraWebGrid();
UpdatePanel1.ContentTemplateContainer.Controls.Add(grid);
WebCombo combo = new WebComo();
PlaceHolder1.Controls.Add(combo);
Strange but works. Tanks again
Based on what you have told me, I would recommend you try to redirect your scripts using that knowledge base article. You either want to copy the script over local to your website and redirect to there or you can redirect it to the virtual directory ig_common in your iis.
We are having this same issue and had to put in spaghetti code to get around it. We are using Infragistics 8.2. Will it be fixed in 9?