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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Call EJDropDownList from codebehind

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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'.

Thanks,
 Imre

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

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 

Regards, 
Prince 


Imre Revesz
Replied On July 24, 2017 10:57 AM UTC

Hi!


Thanks. It works great.


Regards,

 Imre


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

Hi Imre, 

Most welcome. 

We are glad to help you. 

Regards, 
Prince 


CONFIRMATION

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.

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

;