This is a migrated thread and some comments may be shown as answers.

Create WebServiceSettings for RadAutoCompleteBox programmatically

2 Answers 106 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Polymorphic Solutions
Top achievements
Rank 1
Polymorphic Solutions asked on 09 May 2013, 04:05 AM
Hi

I have a requirement to create a RadAutoCompleteBox programmatically.

I have successfully created the RadAutoCompleteBox via code but I am unsure how to set the TextSettings and WebServiceSettings programmatically.

The documentation describes a WebServiceSettings class but I am unsure if it can be used for RadAutoCompleteBox and how to use it.

I also see that a AutoCompleteBoxTextSettings class exists but I am also unsure if it can be used to set the selection mode. 

Ultimately I want single selection and for the RadAutoCompleteBox to post back to the web service to get the detail to display.

Thanks. 








2 Answers, 1 is accepted

Sort by
0
Polymorphic Solutions
Top achievements
Rank 1
answered on 09 May 2013, 11:47 PM
As it turns out I have been able to set the WebServiceSettings and TextSettings properties in code despite the documentation suggesting (to me anyway) that these are read only properties.

I am not sure if I am in uncharted territory or some kind of misunderstanding on my part.  The control now looks up my service ok. I have other issues (my entry when selected is for some reason displayed above the textbox in a DIV called racTokenList, ) . 
0
Nencho
Telerik team
answered on 13 May 2013, 03:55 PM
Hello,

The experienced behavior is by design. The added entries are not placed in the input of the control, but in spans, into the mentioned racTokenList div. The behavior you had experienced, is cased by the long text, of the currently added entry, which exceeds the RadAutoCompleteBox' width.

Regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AutoCompleteBox
Asked by
Polymorphic Solutions
Top achievements
Rank 1
Answers by
Polymorphic Solutions
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or