Create WebServiceSettings for RadAutoCompleteBox programmatically

3 posts, 0 answers
  1. Polymorphic Solutions
    Polymorphic Solutions avatar
    3 posts
    Member since:
    Sep 2009

    Posted 08 May 2013 Link to this post

    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. Polymorphic Solutions
    Polymorphic Solutions avatar
    3 posts
    Member since:
    Sep 2009

    Posted 09 May 2013 Link to this post

    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, ) . 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 13 May 2013 Link to this post

    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.
Back to Top