Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Set WebTextEditor Text after WebDropDown changes without Postback
posted

Similar to the Cascading WebDropDown value

http://samples.infragistics.com/2010.1/WebFeatureBrowser/Default.aspx

How do you set a textbox value after the user selects a value of a dropdown  (without doing a postback)

I have a list of usernames in a dropdownlist.   When a name is selected I want to fire a server side event to lookup the phonebook from an arraylist depending on name selected and return that phone number to a WebTextEditor (or textbox)

On the cascading sample there is javascript

combo2.loadItems(eventArgs.getNewSelection()[0].get_text());

that calls the server side event

WebDropDown2.ItemsRequested +=

new DropDownItemsRequestedEventHandler

(WebDropDown2_ItemsRequested);

 

What would be the equipvalent to:

 

var text1 = $find('<%= WebTextEditor1.ClientID %>');

text1.set_text(???????????)

 

 

Parents Reply Children
No Data