Jun 28, 2012, 6:55 AM
XScript with mcv3 razor
Hi everybody,
can give me same sample?
thanks
@{
Layout = "";
}
<!DOCTYPE html>
<html>
<head>
<ext:xscript runat="server">
<script type="text/javascript">
var addTab = function (tabPanel, id, url, menuItem) {
var tab = tabPanel.getComponent(id);
if (!tab) {
tab = tabPanel.add({
id : id,
title : url,
closable : true,
menuItem : menuItem,
loader : {
url : url,
renderer : "frame",
loadMask : {
showMask : true,
msg : "Loading " + url + "..."
}
}
});
tab.on("activate", function (tab) {
#{MenuPanel1}.setSelection(tab.menuItem);
});
}
tabPanel.setActiveTab(tab);
}
</script>
</ext:xscript>
@Html.X().XScript()
<title>Ext.NET Examples</title>
here are same wrong with mvc3 razercan give me same sample?
thanks
Last edited by Daniil; Jul 02, 2012 at 7:02 PM.