Multi Characters AutoCompleteSeparator in RadComboBox

6 posts, 0 answers
  1. Ali
    Ali avatar
    24 posts
    Member since:
    Apr 2010

    Posted 30 Jul 2012 Link to this post

    Multi Characters AutoCompleteSeparator in RadComboBox:
    ---------------------------------------------------------------------------
    I need to have 2 characters as the "AutoCompleteSeparator in RadComboBox". I know that you can use [AutoCompleteSeparator=";|" to have multiple 1 character [; and |] separators. But I need to have [AutoCompleteSeparator="  " 2 white spaces acting as 1 separator. 
    For example:
    My Item1  My Item2  My Item3
    [please note that between My Item1 and My Item2 there are 2 whites spaces which I want to use as a separator so that I can get the following:]
    My Item1
    My Item2
    My Item3
    Is it possible?  

  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 01 Aug 2012 Link to this post

    Hi m a,

    The RadComboBox's text is modified every time the user check/uncheck an item. This is behaviour by design and that is why changing programmatically the text in the input is not a supported scenario.

    To achieve the desired functionality, I can suggest you to use the RadComboBox ItemTemplate. You could modify the OnCheckBoxClick function and use another symbol as a text delimiter. Here is a online demo, where this approach is shown.

    Kind 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ali
    Ali avatar
    24 posts
    Member since:
    Apr 2010

    Posted 01 Aug 2012 Link to this post

    Hi Nencho,
    Thank you very much for the reply. All I need is to have 2 characters [AutoCompleteSeparator = "  "] as a separator not 1 character [AutoCompleteSeparator = ";"] so that I can have 2 spaces acting as one separator.
    Is it possible?

  5. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 02 Aug 2012 Link to this post

    Hi m a,

    Considering your scenario and the type of the items used (with white space), i suggest you to use ";" as a separator. It's a way more rational and user friendly, than separating the items with two white spaces.

    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.
  6. Ali
    Ali avatar
    24 posts
    Member since:
    Apr 2010

    Posted 22 Aug 2012 Link to this post

    Hi Nencho,
    Thanks again for your reply. As I mentioned before that I NEED to use 2 white spaces ["  "] as one separator, not [";"]. My RadComboBox items will contain "URLs" and/or "Search Terms". The separators [";"] or [","] or [" "] can be part of an URL or Search Terms. I can use ["|"], but this requires user to press SHIFT+ |, which is less user friendly. Space bar on the other hand is more natural to use as a separator. But, 1 white space can be part of a search term [i.e. Search Term: "laptop deals"]. So, I need 2 white spaces to act as one separator. Is there a way I can use 2 characters as a separator in RadComboBox?

    Thanks a lot.
    http://www.megasearches.com/ 

  7. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 23 Aug 2012 Link to this post

    Hi,

    Unfortunately, the desired functionality is not a supported scenario. You could set two blank spaces as a AutoCompleteSeparator, but this functionality will separate the items when even one blank space is typed. This behavior will occur, because in the value of the AutoCompleteSeparator property, you could enumerate the possible delimiter, which the user is allowed or expected to use.


    Greetings,
    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
UI for ASP.NET Ajax is Ready for VS 2017