This is a migrated thread and some comments may be shown as answers.
Multi Characters AutoCompleteSeparator in RadComboBox
5 Answers 40 Views
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 31 Jul 2012, 03:28 AM
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?  

5 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 01 Aug 2012, 02:42 PM
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.
0
Ali
Top achievements
Rank 1
answered on 01 Aug 2012, 11:24 PM
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?

0
Nencho
Telerik team
answered on 02 Aug 2012, 03:20 PM
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.
0
Ali
Top achievements
Rank 1
answered on 23 Aug 2012, 04:14 AM
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/ 

0
Nencho
Telerik team
answered on 23 Aug 2012, 12:01 PM
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.
Asked by
Ali
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ali
Top achievements
Rank 1
Share this question
or