We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic GenericDropDown

Thread ID:





74291 Jun 5,2008 05:55 PM UTC Aug 20,2008 07:21 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Tools
Kathy Gray
Asked On June 5, 2008 05:55 PM UTC

I have a genericdropdown control on a page, but I want to put the controls in during the code behind. But, when I do it using the below code, The button that shows the list doesn't seem to work. Am I missing something?

Dim ThisTable As New Table
ThisTable.Style.Value = "border-style:solid; border-color:#7C6F57; border-width:thin; background: #FFFFFF;"
Dim ThisRow As TableRow
Dim ThisCell As TableCell
Dim ThisButton As LinkButton
For Each item As String In Choices
ThisRow = New TableRow
ThisCell = New TableCell
ThisButton = New LinkButton
ThisButton.CssClass = "gdd"
ThisButton.Text = item
ThisButton.OnClientClick = Me.FixedInputDropDown.ClientObjectId & ".SetText('" & item & "');" & Me.FixedInputDropDown.ClientObjectId & ".HidePopup(); return false;"

'Here is where I add it to the GenericDropDown Me.FixedInputDropDown.PopupControls.Add(ThisTable)

Melba Winshia [Syncfusion]
Replied On June 9, 2008 06:57 AM UTC

Hi Kathy,

Thank you for your interest in Syncfusion Products.

I am able to reproduce this issue. This issue is suspected to be a defect and we have sent this to our development team for more analysis. We will update you on this issue on or before 11th June 2008. As a workaround you can use PlaceHolder to add the controls to GDD in code behind. Please refer the sample in the below link which illustrates the above:


Please try this and let me know if this helps.


Melba Winshia [Syncfusion]
Replied On June 12, 2008 12:48 PM UTC

Hi Kathy,

Thank you for being patient.

The issue with - 'Controls could not be added to GenericDropdown dynamically' has been confirmed as a defect and our Developers are working on fixing this issue. The fix for this issue is expected to be available on June 26th 2008 and we will get back to you on the specified date with more details.

Please refer to the following link for the status update on this defect fix.


Please let us know if you have any other concerns.


Rekha P [Syncfusion]
Replied On August 20, 2008 07:21 AM UTC

Hi Kathy,

Thank you for being patient.

We are glad to inform you that the issue - 'Controls could not be added to GenericDropdown dynamically' has been fixed and the fix for this issue is available in the Development build v6.3.0.35 which you can refer to the below location for download.


Also please refer the below link which contains the sample for this issue.

Please let me know if you have any concerns.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon