Hi,
I am working with a web application which uses the WebDataGrid and a DropDown EditorProvider for a Column.
When I add Items to the Collection and build the web application it throws an error lik this
Infragistics.Web.UI.ListControls.DropDownItemCollection must have items of type
'Infragistics.Web.UI.ListControls.DropDownItem'. 'infragistics.web.ui.listcontrols.dropdownitem'
is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
I am using NETAdvantage for ASP.NET WebClient 2010 volume 1 (trial version).
Please Help.
Thank You
Praveen
Hi Praveen,
Can you send me more information regarding the error and how to produce it. Also do you have the namespace Infragistics.Web.UI.ListControls included in the register clauses in the web site or the web.config file? The namespace should be added manually or by dropping a new WebDropDown control on the page, before adding items to the control.
Magued
Hi Magued,
Thanks for Your reply.
As per your reply I add this Register tag prefix
<%
@ Register assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011,
Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
namespace="Infragistics.Web.UI.ListControls" tagprefix="ig" %>
at the top of the page and it worked fine.
But when I bind Items from an SqlDataSource it throws this error
The control collection cannot be modified during DataBind,
Init, Load, PreRender or Unload phases.
Please help.
Please update the forum if you would like to discuss this issue further.
Hi Magued
Issue still persists.
When I added a TemplateDataField which has an ImageButton for Item deletion and ran the
application, it threw the error like this :
The control collection cannot be modified during
DataBind, Init, Load, PreRender or Unload phases.
Please see the related design and codepage zipped.
I am following up with you and if you need to discuss this issue further. Please update the forums regarding any questions.
I'm runing NetAdvantage 10.2 clr 3.5, which is the latest release and I'm still having this problem. I can't have a dropdown as an editor provider if there's a template field with an itemtemlate tag in the webdatagrid. Please advise.
Thanks in advance.
I'm runing NetAdvantage 10.3 clr 4x, and I have the same problem. I can't have a dropdown as an editor provider if there's a template data field with an itemtemlate tag in the webdatagrid.
Thanks