i tried to make my own tab this way:
eventMessage.BlocksToRender.Add( new MvcHtmlString( TabHelper.BuildKendoAdminTab( eventMessage.TabStripName, tabName, content ) ) );
public static string BuildKendoAdminTab( string tabStripName, string text, string content, string contentType = "contentUrl", bool encoded = false )
{
return String.Format(
"{5}<script>{5}" +
" $(document).ready(function() {{{5}" +
" $('#{0}').data('kendoTabStrip').append({5}" +
" [{{{5}" +
" text: '{1}',{5}" +
" encoded: {2},{5}" +
" {3}: '{4}'{5}" +
" }}]);{5}" +
" var tabStrip = $('#{0}').data('kendoTabStrip');{5}" +
" tabStrip.reload('li:last');{5}" + // ..
" }});{5}" +
"</script>{5}",
tabStripName, text, encoded.ToString().ToLower(), contentType, content, Environment.NewLine
);
}
It works this way. But the content will load dynamic "on click". How can i change this?
I am also not in a position to use other KendoControls then Textboxes. Using an int-value e.g. doesn't work with contentUrl (JavaScript in JavaScript).
Any ideas?