Tabstrip issue

1 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2014 Link to this post


    Hi Telerik team,

    I have tabstrip as follows:

    <% Html.Telerik().TabStrip()
    .Name("TabStrip")
    .Items(tabstrip =>
    tabstrip.Add()//To set Extra tab
    .Text("4")
    .Selected(true))//To get default selection of this tab
    .HtmlAttributes(new { Style = "Width:100%;" })
    .BindTo(Model.ItemType.Creates(),
    (item, navigationData) =>
    {
    //item.Text = "&nbsp;";
    item.ImageUrl = "/" + navigationData.ImageUrl + "/";
    item.Text = navigationData.Value;
    })
    .ClientEvents(events => events
    .OnSelect("TabStripSelect")
    )
    .Render(); %>
     

     Here Can I set 'item.value'(instead of 'item.Text')?

    How to get tab selected value and tab selected text and tab selected index of tab on button click?

    With regards
    Dayana
Back to Top