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
close icon

Sample for editors

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

1 Reply

SN Sasikala Nagarajan Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon