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

Issues retrieving RadTagCloudItem value client side

1 Answer 75 Views
TagCloud
This is a migrated thread and some comments may be shown as answers.
Tarynn
Top achievements
Rank 1
Tarynn asked on 12 Sep 2012, 04:46 AM
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.


1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Sep 2012, 08:24 AM
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.
Tags
TagCloud
Asked by
Tarynn
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or