Posted on Dec 16, 2011 (permalink)
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/MicrosoftMvcValidation.js")" type="text/javascript"></script>
@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group .Add("MicrosoftAjax.js") .Add("MicrosoftMvcValidation.js"))
@{ Html.EnableClientValidation(); }
Reply
Posted on Dec 19, 2011 (permalink)
Html.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false)
Posted on Feb 1, 2012 (permalink)
Posted on Mar 16, 2012 (permalink)
@(Html.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false)
.DefaultGroup(group => group
.Compress(true))
)
<
script
src
=
"@Url.Content("
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js")"
type
"text/javascript"
></
>
http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js")"
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js")"
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js")"
~/Scripts/MicrosoftAjax.js")"
~/Scripts/MicrosoftMvcAjax.js")"
~/Scripts/MicrosoftMvcValidation.js")"
@(Html.Telerik().Window()
.Name("Details")
.Visible(false)
.Title("User Details")
.Modal(true)
.Buttons(buttons => buttons.Close())
.Scrollable(false)
.ClientEvents(events => events
.OnActivate("onActivate"))
function viewDetails(userId) {
$.ajax({
type: 'POST',
url: '/User/ViewDetails',
data: { userId: userId },
dataType: 'html',
success: function (htmlData)
{
var detailWindow = $("#Details").data("tWindow");
detailWindow.content(htmlData);
detailWindow.center().open();
},
error: function () {
alert("Error loading User Details");
}
})
Posted on Mar 20, 2012 (permalink)
@using (Html.BeginForm("SubmitUser", "User", FormMethod.Post, new { user = "user-form", name = "SubmitUser" }))
@Html.ValidationSummary()
@(Html.Telerik().TabStrip()
.Name("UserTabStrip")
.SelectedIndex(0)
.ClientEvents(events => events.OnContentLoad("onContentLoad"))
.HtmlAttributes(new { style = "width:920px" })
.Items(items =>
function submitDetails(userId) {
success: function (htmlData) {
$.validator.unobtrusive.parse(e.contentElement);
function onCancelDetails() {
alert("onCancelDetails");
detailWindow.close();
function onSubmitUser() {
var tabStrip = $("#UserTabStrip").data("tTabStrip");
tabStrip.select($(".t-item", tabStrip.element)[0]);
function onContentLoad(e) {
alert("onContentLoad");
</
Posted on Mar 23, 2012 (permalink)
type:
'POST'
,
url:
'/User/ViewDetails'
dataType:
'html'
success:
function
(htmlData) {
var
detailWindow = $(
"#Details"
).data(
"tWindow"
);
$.validator.unobtrusive.parse($(detailWindow.element).find(
'.t-window-content'
));
Back to Top
[ ASP.NET MVC Window Features | Documentation | Demos | Telerik TV ]
UI controls for ASP.NET AJAX, MVC, WPF,Silverlight, Windows 8 and Windows Phone
Cross-platform Mobile Development Toolwith cloud-based architecture
Everything you need to build sites andmobile apps with JavaScript and HTML5
One easy tool for Functional, Performance,Load and Mobile software testing
Everything for your online business - contentmanagement, ecommerce, emarketing
Simple and intuitive project managementand collaboration software