This question is locked. New answers and comments are not allowed.
Hello, Good Afternoon!
I have a screen with a TabStrip with four tabs in each tab has fields to be filled and sent to the server via a journal, remembering that I only have one form on the screen.
Before I make a post on the page I need to get the index of current tab, because after I take the post, the page will reload and I need to return to the same tab that generated the event post.
Somebody help me?
For example:
the TabStrip:
when an item is selected from a dropdown:
fires the following function:
and there in the controller get the value of the variable Tab_Selected!
How do I do?
I have a screen with a TabStrip with four tabs in each tab has fields to be filled and sent to the server via a journal, remembering that I only have one form on the screen.
Before I make a post on the page I need to get the index of current tab, because after I take the post, the page will reload and I need to return to the same tab that generated the event post.
Somebody help me?
For example:
the TabStrip:
<%Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(items =>{
items.Add()
.Text("Open Travel").Content(() =>{
\\\\
\\\\
%>when an item is selected from a dropdown:
<%= Html.DropDownList("DropDown1", null, "Type", new { onchange = "Load_Update()" })%>
fires the following function:
function Load_Update() {
$("#Tab_Selected").val(/*here the value of the selected tab*/); $("#form").submit();
$("#div").show();
}and there in the controller get the value of the variable Tab_Selected!
How do I do?