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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Examples in VB

Thread ID:

Created:

Updated:

Platform:

Replies:

131473 Jul 11,2017 05:36 PM UTC Jul 12,2017 05:02 AM UTC ASP.NET MVC 1
loading
Tags: Tab
João Carvalho
Asked On July 11, 2017 05:36 PM UTC

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>);

 })

Keerthana Rajendran [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;