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.
Unfortunately, activation email could not send to your email. Please try again.

Call EJDropDownList from codebehind

Thread ID:





131663 Jul 21,2017 12:20 PM Jul 25,2017 12:03 AM ASP.NET Web Forms 3
Tags: General
Imre Revesz
Asked On July 21, 2017 12:20 PM

Dear Syncfusion!

I want to call my EJDropDownList Change event from C# codebehind. 
This event what I want to call:

protected void EJDropDownList_Change(object sender, Syncfusion.JavaScript.Web.DropdownListEventArgs e) {

EJDropDownList_Change(sender, e); not work with this error:

cannot convert from 'System.EventArgs' to 'SyncFusion.JavaScript.Web.DropDownlistEventArgs'.


Prince Oliver [Syncfusion]
Replied On July 24, 2017 05:56 AM

Hi Imre, 

Thank you for using Syncfusion products. 

To call the EJDropDownList Change event from codebehind, you need to define the DropdownListEventArgs and then you can pass it as parameter by setting its value to null. Kindly refer the following code snippet. 

Syncfusion.JavaScript.Web.DropdownListEventArgs args = null; 
EJDropDownList_Change(sender, args); 

We have prepared a sample, kindly refer to the following link for the sample: http://www.syncfusion.com/downloads/support/forum/131663/ze/DdlAspSample-933213496 


Imre Revesz
Replied On July 24, 2017 06:57 AM


Thanks. It works great.



Prince Oliver [Syncfusion]
Replied On July 25, 2017 12:03 AM

Hi Imre, 

Most welcome. 

We are glad to help you. 



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.

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.