Comma delimited string as datasource

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    11 posts
    Member since:
    Jul 2011

    Posted 20 May 2013 Link to this post

    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.

  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 23 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top