Hi,
I'm trying to place a webdropdown control within the <itemtemplate> tag of an asp repeater. I have a dummy script manager outside the repeater without which the webdropdown didn't render. However, when I add more than one rows to the repeater during run time, I get an error:
"Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id {0} can't be added to the application."
Your help is much appreciated. Thanks in advance.
Hi svshivshan,
Thank you for posting in the community.
I have investigated this scenario, however so far when adding multiple rows to the Repeater's datasource I am unable to replicate the behavior using version 11.2.20112.1019. In order to provide more insight I would need to know more information regarding how you are adding rows to your repeater as well as the precise version of .NetAdvantage which you are using. A small sample illustrating the behavior would be greatly appreciated.
Feel free to contact me if you have any additional questions.
Hi Petar,
Really appreciate the quick response!
I am using NetAdvantage 2010.3 for CLR3.5. I am binding my repeater to a table in the codebehind. When the user wants to add a new row, he clicks a button which triggers a server call. A new row is added to the table and the repeater is bound again.
I am working on a sample to reproduce the error and send it over to you. Thought it would be worthwhile to add on some information while I get it ready.
Thanks
Thank you for your reply.
Note that the WARP panel is outdated and as of version 11.2 has been retired. I suggest that you use the regular ASP Update Panel instead. A detailed list of the retired controls and their respective replacements can be found at:
http://community.infragistics.com/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
AIKIDO controls such as the WebDropDown are not compatible with the WARP panel. I tested the scenario you described and was able to replicate the behavior, however replacing the WARP panel with an ASP Update Panel seems to resolve the matter.
Please let me know if this helps.
I tried recreating the issue in a simple application. Interestingly, the error is not thrown any longer. So I'll revisit my original code and see what I'm doing differently.
However, there is a new issue whereby when a new row is added to the repeater, I'm no longer able to click the control to drop down the list of options. Its freezes.
The program works as follows -> Repeater placed inside a webasyncrefreshpanel-> contains 3 columns - webdropdown, webdatechooser and button to add new row -> repeater bound to a datatable with 3 columns and one dummy row in C# code -> a single row appears in the UI with both dropdown and datechooser functional -> user clicks add row button -> C# code adds a row to datatable and binds it to repeater again -> 2 rows displayed in UI -> webdatechooser functional (can choose dates) but webdropdown is frozen.
Hope that gives you a better picture. Thank you very much for helping out.