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. Image for the cookie policy date

DropDownList SelectMethod doesn't work

Hi,

I want to use a dropdownlist control, but this code doesn't work:

<ej:DropDownList class="col-md-2" ID="ddlAAConGas" runat="server" SelectMethod="GetEmpresasGN"  DataTextField="Nombre"  DataValueField="IdEmpresa"  />

The control doesn't fill and stay with the loading icon

If I use

<asp:DropDownList class="col-md-2" ID="ddlSituacionGN" runat="server" SelectMethod="GetSituacionesGN" DataTextField="SituacionGN"  DataValueField="IdSituacion" />

It works perfectly

Bye

1 Reply

ES Ezhil S Syncfusion Team March 11, 2015 11:49 AM UTC

Hi Manolo,

Thank you for contacting Syncfusion support.

We are unable to reproduce the reported issue with DropDownList on using SelectMethod property. As per the shared code it seems that you have used different methods to bind data for Syncfusion DropDownList and ASP DropDownList, so the issue may also arise when data is not generated properly. So please ensure whether the data is generated properly with the DropDownList model data and their corresponding fields. We have prepared a sample by binding data using SelectMethod and that works fine at our end. Please ensure the sample at your end and let us know the issue persist at your end. If so could you please share defect sample or modify sample shared to reproduce issue at our end. So that we can provide you a solution as soon as possible.

Sample can be downloaded from link below:

http://www.syncfusion.com/downloads/support/directtrac/general/DropDown_f118142634349.zip

Please let us know if you have any other queries.

Regards,

Ezhil S



Loader.
Up arrow icon