I have set up a asp.net MVC web app and in the layout.cshtml I set a mobilelayout and mobiletabstrip. The mobile application's server navigation has been set to false, so that the partial views are obtained from the controller via ajax but they are only gotten once (never refreshed). I have set a couple of events on the view for before show and was thinking that I could go and grab the latest partial view from the controller here.
Is this process a good idea or is there a better way?
Hello,
I would like to fire click Event when already selected tab item is clicked. Looks like OnSelect doesnt get fired if the selected item is clicked again. I tried implementing JavaScript but doesnt get fired
$(function () {
$("#tbAdress .k-tabstrip-items").on("click", "li.k-state-active", function () {
//custom logic
});
});
here is my layout
@(Html.Kendo().MobileLayout()
.Name("mobile-tabstrip")
//.Header(obj => NavBarTemplate(this))
.Header(
@<text>
@Menumobile()
</text>
)
.Footer(
@<text>
@(Html.Kendo().MobileTabStrip()
.Name("tbAdress")
.SelectedIndex(999)
.Events(events => events
.Select("onTabSelect")
)
.Items(items =>
{
items.Add().Text("Objekt").HtmlAttributes(new { @data_icon = "home" });
items.Add().Text("GoogleMaps").HtmlAttributes(new { @data_icon = "gps-e" });
})
)
</text>)
)
How can i achieve this
-Anamika
@code
Dim
mobileTab
As
Kendo.Mvc.UI.MobileTabStrip = Html.Kendo.MobileTabStrip().Name(
"mobileTab"
).Items(
Sub
(items)
items.Add().Icon(
"contacts"
).Text(
"Products"
)
items.Add().Icon(
"cart"
).Text(
"Shopping Cart"
)
End
Sub
) _
.Events(
Function
(events) events.
Select
(
"onSelect"
))
mobileTab.Render()
End
Code
@Html.Kendo().MobileApplication().ServerNavigation(true)