javascript - Kendo Tabstrip select method set -
i'm using kendo tabstrip in project, , using mvc view content of panel, setting contenturl tab.
this working great, although having issue, trying set select function mvc view.
within view have tried:
$('#edit').kendotabstrip().select = function(e){alert('tab has been changed');}
and couple of other ways, however, when try set select method view, doesn't allow me to.
i think need define select event in tabstrip configuration, explained here , here.
example:
define select event function
var onselect = function(e) { alert('tab has been changed'); };
javascript
var tabstrip = $("#edit").kendotabstrip({ select: onselect, // etc }).data("kendotabstrip");
kendo mvc
@(html.kendo().tabstrip() .name("edit") .events(events => events.select("onselect")) //etc )
Comments
Post a Comment