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.
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.
I performed the procedure to describe it:
------------------------------------------------
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:
{
}
When I run the program leaves me this error:
Run-time error in Microsoft BLOCKED SCRIPT Sys.ScriptLoadFailedException: The script 'scripts/inf/ig_webcombo3_1.js' failed to load. Check for:
Here's what i found:
http://forums.asp.net/t/1060800.aspx
What version of our controls are you using?
In researching ASP.NET dynamic control creation, it is necessary to recreate any dynamically created controls during the postback process. This allows the viewstate to be attached to those controls (asp.net's second try). I've tested this and got it working in Visual Studio 2008 ASP.NET using an asp.net textbox. When using an infragistics webmaskedit control, the viewstate is not attached to the control and the values are lost. Do you have any example of this or can you suggest how I can accomplish this? I'm dynamically creating the controls based on a selected report. The user enters values in those controls and clicks a button to preview the report. I'm unable to access the values the user entered because the viewstate doesn't get pushed back into the controls (again, I rebuild the dynamic controls at postback as required by asp.net)