Issues retrieving RadTagCloudItem value client side

2 posts, 0 answers
  1. Tarynn
    Tarynn avatar
    1 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    I am looping to add Items to a rad tag cloud...

    foreach (KeyWord kw in keyWordList)
                    RadTagCloudItem item = new RadTagCloudItem();
                    item.Text = kw.KeyWordText;
                    item.ToolTip = kw.ReturnMessageText;
                    item.Value = kw.KeyWordID.ToString();

    I have verified that during the loop the values are being set properly.

    I then call a javascript function when an item is clicked:

    <telerik:RadTagCloud ID="RadTagCloud1" runat="server" Skin="MetroTouch" OnClientItemClicked="KwDetail">

    Which is executed here:

    function KwDetail(sender, args) {
                    var item = args.get_item();
                    var toolTip = item.get_toolTip();
                    var text = item.get_text();
                    var items = sender.get_items();
                    var value = item.get_value();

    and the value is set to null. I would appreciate any help on this matter.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Sep 2012 Link to this post

    Hi Tarynn,

    According to this forum thread currently it is not possible to get the value of a RadTagCloudItem via the client-side API of the control.

Back to Top