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();
                    RadTagCloud1.Items.Add(item);
                }


    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">
    </telerik:RadTagCloud>



    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.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top