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.
Syncfusion Feedback

Sample for editors

Thread ID:

Created:

Updated:

Platform:

Replies:

119014 May 5,2015 12:45 PM UTC May 6,2015 01:12 PM UTC JavaScript 1
loading
Tags: General
Edgar Ricardez Peralta
Asked On May 5, 2015 12:45 PM UTC

Hi Syncfusion, 

Please add example of how to get/set values for editors HTML5/JavaScript controls for another event. For example when I click button. The editors controls may be initialized when the page is ready. 

Thanks

Sasikala Nagarajan [Syncfusion]
Replied On May 6, 2015 01:12 PM UTC

Hi Edgar,

Thanks for using Syncfusion products,

We have prepared the sample based on your requirement. Please get the sample from below location.

Sample

In this sample, we have showcased the all available options in dropdown list to get/set the value from another function (in button click event).

We can get/set the dropdown list value using public methods and APIs,

Public methods-to set the dropdown list value
· setSelectedItem - set the dropdown list value based on the value field.
· getSelectedItem - set the dropdown list value based on the text field.

Public methods-to get the dropdown list selected item value
· getValue() - get the value of selected item in dropdown list
· getSelectedItem() - get the value of selected item in dropdown list
· getSelectedValue() - get the text of selected item in dropdown list

API – to set the dropdown list value
· Value - set the dropdown list value based on the value field.
· Text - set the dropdown list value based on the text field.

API – to get the dropdown list selected item value/text
· Value - get the value of selected item in dropdown list
· Text - get the text of selected item in dropdown list

Please check with the provided samples and let us know if it helps.

Regards,
Sasikala Nagarajan

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

;