Creating a ribbon based off fatatable provided by a WCF service

Am able to add a service reference and use it in my code-behind for most projects, the same syntax is not working for syncfusion webforms projects. Is there a different method to doing this? Here is some sample code that works with  telerik : 
        Dim _client As New MyService.ServiceReference.ServiceClient
        Dim dtPerms As String() = _client.GetUserPermissions("[email protected]")
        Dim dtFuncs As String()
        For Each strDept As String In dtPerms
            Dim rad As New RibbonBarTab
            rad.ID = strDept + "department"
            rad.Text = strDept

            dtFuncs = _client.GetUserFunctions("[email protected]", strDept)
            Dim radGroup As New RibbonBarGroup
            For Each strFuncs As String In dtFuncs
                Dim butR As New RibbonBarButton
                butR.ID = strDept.Replace(" ", "") + strFuncs.Replace(" ", "") + "function"
                butR.Text = strFuncs
                butR.Value = strFuncs
                butR.Size = RibbonBarItemSize.Medium
                butR.ImageUrl = "~/wwwroot/FF4D00-0.8.png" 'blank image for no x

                radGroup.Items.Add(butR)
            Next

            rad.Groups.Add(radGroup)
            RadRibbonBar1.Tabs.Add(rad)
        Next

1 Reply

KR Keerthana Rajendran Syncfusion Team January 25, 2021 11:04 AM UTC

Hi David, 
 
Thanks for contacting Syncfusion support.  
 
Based on your update, we are not clear on the exact data bound to Ribbon control. Ribbon control do not have direct data binding support from service but you can update tab and groups of Ribbon using its property. Refer to the following links for more details on Ribbon control. 
 
 
 
 
Please share your exact requirement with Syncfusion Ribbon along with your code snippet and data used for rendering Ribbon to serve you better.  
 
Regards, 
Keerthana 


Loader.
Up arrow icon