RadCompactButton not working when building RadSocialShare Dynamically

2 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    4 posts
    Member since:
    Nov 2013

    Posted 28 Mar 2017 Link to this post

    when i build the RadSocialShare dynamically, the RadCompactButton does not work (dialog does not popup with items in the CompactButtons list


    - working in ASP .net4.5

    - No javascript erra's

    - I can get to work if i build in markup as described in help documents

    - does not work when building the radSocialShare control dynamically


    <<< Suedo Code >>>

    private RadSocialShare CreateRadSocialShareButtons()
    RadSocialShare radSocialShare = new RadSocialShare();
    myList = GetButtonList();  //get my list of social controls items

    foreach (ListItem item in myList)
    {   //check if button enabled for sharing
    if (item.Enabled)
    {   //start setting standard properties
    RadSocialButton socialButton = new RadSocialButton();
    socialButton.SocialNetType = (SocialNetType)Enum.Parse(typeof(SocialNetType), item.SocialNetType);
    socialButton.CssClass = "SocialShareButtons";
    socialButton.ToolTip = item.SocialSite; //display in tooltip (e.g. Facebook)

    if (item.ShowInMain)
    {   //display in main list
    {   //display in compact list

    if (radSocialShare.CompactButtons.Count > 0)
    { //<!------THIS SHOWS UP ON PAGE, BUT DOES NOTHING---   !>
    RadCompactButton radCompactBtn = new RadCompactButton();
    radCompactBtn.ToolTip = "See More Social Share Types";
    return radSocialShare;

  2. Ricardo
    Ricardo avatar
    4 posts
    Member since:
    Nov 2013

    Posted 29 Mar 2017 in reply to Ricardo Link to this post

    my bad, its working as designed...
Back to Top