We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Examples in VB

Hi guys.
Can you give some examples like the ones you provide in https://help.syncfusion.com/js/tab/getting-started
but in Visual Basic?
I can't manage to get my tabs to work, because I can't figure it out how to program the ContentTemplate.

If you could convert this following example to VB, it would be great :)

Thanks in advance

 @Html.EJ().Tab("Dish").Items(data =>

 {

     data.Add().ID("dish").Text("dish Menu").ContentTemplate(@<div></div>);

     data.Add().ID("type").Text("dish Type").ContentTemplate(@<div></div>);

     data.Add().ID("sandwich").Text("Sandwich Type").ContentTemplate(@<div></div>);

 })

1 Reply

KR Keerthana Rajendran Syncfusion Team July 12, 2017 05:02 AM UTC

Hi Joao, 
 
Thank you for contacting Syncfusion support 
 
Please refer the below given code to render the Tab with content template in VB 
 
  @Code 
            Dim tabbuilder = Html.EJ().Tab("Dish") 
    tabbuilder.ShowCloseButton(true) 
    tabbuilder.EnableRTL(false) 
    tabbuilder.EnablePersistence(false) 
            tabbuilder.Items(Sub(items) 
                                     items.Add().ID("dish").Text("Dish Menu").ContentTemplate(Sub() 
    @<div> 
    <p>Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.</p> 
    </div>End Sub) 
                                    items.Add().ID("type").Text("dish type").ContentTemplate(Sub() 
    @<div> 
         dish cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health. 
    </div>End Sub) 
                                     items.Add().ID("sandwich").Text("Sandwich type").ContentTemplate(Sub() 
    @<div> 
         Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health. 
    </div>End Sub) 
                             End Sub).Render() 
       End Code 
 
We have prepared sample for your reference. Please refer to the below given link for sample 
 
 
We can create a sample with required controls using sample creator in VB or C#. Please refer the below given UG Link for creating samples using sample creator 
 
 
 
Regards, 
Keerthana. 


Loader.
Live Chat Icon For mobile
Up arrow icon