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

Comma delimited string as datasource

1 Answer 60 Views
TagCloud
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 20 May 2013, 08:15 PM
How do I set a comma as the tag separator?  It seems my tags are being separated by space, but our tags can contain separator words.  For example "Santa Monica,Public Library" is displayed as 4 tags instead of just 2.

Is there something I'm missing here?  Seems like this should be the default behavior.

Thanks for your time.

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 23 May 2013, 03:11 PM
Hi Stephen,

If I understand you correctly, you want to use only the comma as a separator for the tag cloud items. I am afraid that disabling the space as separator for the specified text is not supported by the RadTagCloud.

If you want to insert words with spaces in the tag cloud, you can manipulate its items collection either on the server-side or on the client-side instead of retrieving the words from a provided text.

The following sample shows how to add your items from the code-behind:
RadTagCloud1.Items.Add(new Telerik.Web.UI.RadTagCloudItem("Santa Monica"));
RadTagCloud1.Items.Add(new Telerik.Web.UI.RadTagCloudItem("Public Library"));

This online demo shows how to add items in the tag cloud via the client-side API of the control.

Regards,
Slav
Telerik
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
TagCloud
Asked by
Stephen
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or