diff --git a/NzbDrone.Web/App_Start/EntityFramework.SqlServerCompact.cs b/NzbDrone.Web/App_Start/EntityFramework.SqlServerCompact.cs new file mode 100644 index 000000000..a579f7479 --- /dev/null +++ b/NzbDrone.Web/App_Start/EntityFramework.SqlServerCompact.cs @@ -0,0 +1,12 @@ +using System.Data.Entity; +using System.Data.Entity.Infrastructure; + +[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.EntityFramework_SqlServerCompact), "Start")] + +namespace NzbDrone.Web.App_Start { + public static class EntityFramework_SqlServerCompact { + public static void Start() { + Database.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0"); + } + } +} diff --git a/NzbDrone.Web/App_Start/MiniProfiler.cs b/NzbDrone.Web/App_Start/MiniProfiler.cs new file mode 100644 index 000000000..11f7c4410 --- /dev/null +++ b/NzbDrone.Web/App_Start/MiniProfiler.cs @@ -0,0 +1,95 @@ +using System.Web; +using System.Web.Mvc; +using System.Linq; +using MvcMiniProfiler; +using MvcMiniProfiler.MVCHelpers; +using Microsoft.Web.Infrastructure.DynamicModuleHelper; +//using System.Data; +//using System.Data.Entity; +//using System.Data.Entity.Infrastructure; + +//using MvcMiniProfiler.Data.Linq2Sql; + +[assembly: WebActivator.PreApplicationStartMethod( + typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PreStart")] + +[assembly: WebActivator.PostApplicationStartMethod( + typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PostStart")] + + +namespace NzbDrone.Web.App_Start +{ + public static class MiniProfilerPackage + { + public static void PreStart() + { + + // Be sure to restart you ASP.NET Developement server, this code will not run until you do that. + + //TODO: See - _MINIPROFILER UPDATED Layout.cshtml + // For profiling to display in the UI you will have to include the line @MvcMiniProfiler.MiniProfiler.RenderIncludes() + // in your master layout + + //TODO: Non SQL Server based installs can use other formatters like: new MvcMiniProfiler.SqlFormatters.InlineFormatter() + MiniProfiler.Settings.SqlFormatter = new MvcMiniProfiler.SqlFormatters.SqlServerFormatter(); + + //TODO: To profile a standard DbConnection: + // var profiled = new ProfiledDbConnection(cnn, MiniProfiler.Current); + + //TODO: If you are profiling EF code first try: + // MiniProfilerEF.Initialize(); + + //Make sure the MiniProfiler handles BeginRequest and EndRequest + DynamicModuleUtility.RegisterModule(typeof(MiniProfilerStartupModule)); + + //Setup profiler for Controllers via a Global ActionFilter + GlobalFilters.Filters.Add(new ProfilingActionFilter()); + } + + public static void PostStart() + { + // Intercept ViewEngines to profile all partial views and regular views. + // If you prefer to insert your profiling blocks manually you can comment this out + var copy = ViewEngines.Engines.ToList(); + ViewEngines.Engines.Clear(); + foreach (var item in copy) + { + ViewEngines.Engines.Add(new ProfilingViewEngine(item)); + } + } + } + + public class MiniProfilerStartupModule : IHttpModule + { + public void Init(HttpApplication context) + { + context.BeginRequest += (sender, e) => + { + var request = ((HttpApplication)sender).Request; + //TODO: By default only local requests are profiled, optionally you can set it up + // so authenticated users are always profiled + if (request.IsLocal) { MiniProfiler.Start(); } + }; + + + // TODO: You can control who sees the profiling information + /* + context.AuthenticateRequest += (sender, e) => + { + if (!CurrentUserIsAllowedToSeeProfiler()) + { + MvcMiniProfiler.MiniProfiler.Stop(discardResults: true); + } + }; + */ + + context.EndRequest += (sender, e) => + { + MiniProfiler.Stop(); + }; + } + + public void Dispose() { } + } +} + diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index b1919b223..b8c7a200e 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -4,18 +4,14 @@ using System.Linq; using System.Reflection; using System.Threading; using System.Web; -using System.Web.Caching; using System.Web.Mvc; using System.Web.Routing; -using MvcMiniProfiler; using NLog.Config; using Ninject; using Ninject.Web.Mvc; using NLog; using NzbDrone.Common; using NzbDrone.Core; -using NzbDrone.Core.Instrumentation; -using Telerik.Web.Mvc; namespace NzbDrone.Web { @@ -99,13 +95,11 @@ namespace NzbDrone.Web protected void Application_BeginRequest() { - Thread.CurrentThread.Name = "UI"; - MiniProfiler.Start(); + Thread.CurrentThread.Name = "WEB_THREAD"; } protected void Application_EndRequest() { - MiniProfiler.Stop(); } } } \ No newline at end of file diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 86c876b5b..be31737e8 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -46,23 +46,20 @@ - False ..\packages\EntityFramework.4.2.0.0\lib\net40\EntityFramework.dll + - False - ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll True + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - False ..\packages\MiniProfiler.1.9\lib\net40\MvcMiniProfiler.dll ..\packages\Ninject.2.2.1.4\lib\net40-Full\Ninject.dll - + ..\packages\Ninject.MVC3.2.2.2.0\lib\net40-Full\Ninject.Web.Mvc.dll @@ -118,6 +115,10 @@ False ..\Libraries\TvdbLib.dll + + False + ..\packages\WebActivator.1.5\lib\net40\WebActivator.dll + @@ -174,6 +175,8 @@ True UploadLocalization.en-US.resx + + @@ -486,9 +489,6 @@ - - - diff --git a/NzbDrone.Web/Views/Log/Index.cshtml b/NzbDrone.Web/Views/Log/Index.cshtml index 2e3f5b9b1..dcae34133 100644 --- a/NzbDrone.Web/Views/Log/Index.cshtml +++ b/NzbDrone.Web/Views/Log/Index.cshtml @@ -24,7 +24,11 @@ Logs } @section ActionMenu{ - @{Html.RenderPartial("SubMenu");} + +
+
} @section MainContent{ @{Html.Telerik().Grid().Name("logsGrid") @@ -32,7 +36,7 @@ Logs .Columns(columns => { columns.Bound(c => c.Time).Title("Time").Width(170); - columns.Bound(c => c.Level).Title("Level"); + columns.Bound(c => c.Level).Title("Level").Width(70); columns.Bound(c => c.Logger).Title("Source"); columns.Bound(c => c.Message); }) @@ -41,15 +45,12 @@ Logs "
<#= ExceptionType #>
" + "
<#= Exception #>
" )) - .DataBinding(data => - { - data.Server().Select("AjaxBinding", "Log", new { ajax = true }); - data.Ajax().Select("AjaxBinding", "Log").Enabled(true); - }) + .DataBinding(data => data.Ajax().Select("AjaxBinding", "Log").Enabled(true)) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true)) - .Pageable(c => c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) + .Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true).PageSize(100)) .Filterable() .ClientEvents(c => c.OnRowDataBound("onRowDataBound")) + .Scrollable(c=>c.Height(500)) .Render();} } + + + @* Make sure you've added this one line to your LAYOUT or MASTER PAGE *@ + + @MvcMiniProfiler.MiniProfiler.RenderIncludes() + + + + +
+
+
+

My MVC Application

+
+
+ @Html.Partial("_LogOnPartial") +
+ +
+
+ @RenderBody() +
+
+
+
+ + diff --git a/packages/MiniProfiler.MVC3.1.9.1/MiniProfiler.MVC3.1.9.1.nupkg b/packages/MiniProfiler.MVC3.1.9.1/MiniProfiler.MVC3.1.9.1.nupkg new file mode 100644 index 000000000..2f24b1c0c Binary files /dev/null and b/packages/MiniProfiler.MVC3.1.9.1/MiniProfiler.MVC3.1.9.1.nupkg differ diff --git a/packages/MiniProfiler.MVC3.1.9.1/tools/install.ps1 b/packages/MiniProfiler.MVC3.1.9.1/tools/install.ps1 new file mode 100644 index 000000000..19c2da0fa --- /dev/null +++ b/packages/MiniProfiler.MVC3.1.9.1/tools/install.ps1 @@ -0,0 +1,6 @@ +param($installPath, $toolsPath, $package, $project) + +$path = [System.IO.Path] +$appstart = $path::Combine($path::GetDirectoryName($project.FileName), "App_Start\MiniProfiler.cs") +$DTE.ItemOperations.OpenFile($appstart) + diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js deleted file mode 100644 index 6437874c6..000000000 --- a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * jQuery JavaScript Library v1.5.1 - * http://jquery.com/ - * - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2011, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Wed Feb 23 13:55:29 2011 -0500 - */ -(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="
a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="
";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div
","
"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js deleted file mode 100644 index 7ab1d85b2..000000000 --- a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * jQuery Validation Plugin 1.8.0 - * - * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ - * http://docs.jquery.com/Plugins/Validation - * - * Copyright (c) 2006 - 2011 Jörn Zaefferer - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ -(function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("").attr("name", -b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form(); -else{var a=true,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name]; -return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a, -b){this.settings=c.extend(true,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error", -validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)}, -onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.", -url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."), -range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator");e="on"+e.type.replace(/^validate/,"");f.settings[e]&&f.settings[e].call(f,this[0])}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&& -this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d=this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate(":text, :password, :file, select, textarea", -"focusin focusout keyup",a).validateDelegate(":radio, :checkbox, select, option","click",a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]); -return this.valid()},element:function(a){this.lastElement=a=this.clean(a);this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList, -function(d){return!(d.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()}, -valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&& -a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)}, -prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];var b=c(a).rules(),d=false,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=true;else{d=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return false}}}catch(h){this.settings.debug&& -window.console&&console.log("exception occured when checking element "+a.id+", check the '"+f.method+"' method",h);throw h;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+a.name+"")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d, -element:a});this.errorMap[a.name]=d;this.submitted[a.name]=d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a= -0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a, -b){var d=this.errorsFor(a);if(d.length){d.removeClass().addClass(this.settings.errorClass);d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text(""); -typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d,e){return e.form== -b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this, -c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted= -false}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings, -a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e=a.attr(d);if(e)b[d]=e}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{};var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]: -c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined?e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)? -e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var b= -{};c.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a,b)>0;default:return c.trim(a).length> -0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d,mode:"abort",port:"validate"+b.name, -dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===true;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a,b,d){return this.optional(b)|| -this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)}, -url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)}, -date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(var g=a.length-1;g>= -0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery); -(function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery); -(function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a, -b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery); diff --git a/packages/TelerikMvcExtensions.2011.3.1115/lib/net40/Telerik.Web.Mvc.xml b/packages/TelerikMvcExtensions.2011.3.1115/lib/net40/Telerik.Web.Mvc.xml new file mode 100644 index 000000000..4a1542c59 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.3.1115/lib/net40/Telerik.Web.Mvc.xml @@ -0,0 +1,25596 @@ + + + + Telerik.Web.Mvc + + + + + Contains the extension methods of . + + + + + Create Nullable instance of the passed . + + + + + Contains extension methods of . + + + + + Get the Application root path. + + The instance. + + + + + Determines whether this instance can compress the specified instance. + + The instance. + + true if this instance can compress the specified instance; otherwise, false. + + + + + + + + + + + + + + + + + + + + + Basic building block to locate the correct virtual path. + + + + + Returns the correct virtual path based upon the debug mode and version. + + The virtual path. + The version. + + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to Bold. + + + + + Looks up a localized string similar to Insert hyperlink. + + + + + Looks up a localized string similar to Are you sure you want to delete "{0}"?. + + + + + Looks up a localized string similar to A directory with this name was not found.. + + + + + Looks up a localized string similar to Empty Folder. + + + + + Looks up a localized string similar to Select font family. + + + + + Looks up a localized string similar to (inherited font). + + + + + Looks up a localized string similar to Select font size. + + + + + Looks up a localized string similar to (inherited size). + + + + + Looks up a localized string similar to Select block type. + + + + + Looks up a localized string similar to Indent. + + + + + Looks up a localized string similar to Insert HTML. + + + + + Looks up a localized string similar to Insert image. + + + + + Looks up a localized string similar to Insert ordered list. + + + + + Looks up a localized string similar to Insert unordered list. + + + + + Looks up a localized string similar to The selected file \"{0}\" is not valid. Supported file types are {1}.. + + + + + Looks up a localized string similar to Italic. + + + + + Looks up a localized string similar to Center text. + + + + + Looks up a localized string similar to Justify. + + + + + Looks up a localized string similar to Align text left. + + + + + Looks up a localized string similar to Align text right. + + + + + Looks up a localized string similar to Arrange by:. + + + + + Looks up a localized string similar to Name. + + + + + Looks up a localized string similar to Size. + + + + + Looks up a localized string similar to Outdent. + + + + + Looks up a localized string similar to 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?. + + + + + Looks up a localized string similar to Strikethrough. + + + + + Looks up a localized string similar to Styles. + + + + + Looks up a localized string similar to Underline. + + + + + Looks up a localized string similar to Remove hyperlink. + + + + + Looks up a localized string similar to Upload. + + + + + View component base class. + + + + + Defines the basic building block of scriptable component. + + + + + Writes the initialization script. + + The writer. + + + + Writes the cleanup script. + + The writer. + + + + Gets or sets the asset key. + + The asset key. + + + + Gets or sets the script files path. Path must be a virtual path. + + The script files path. + + + + Gets or sets the script file names. + + The script file names. + + + + Gets the client side object writer factory. + + The client side object writer factory. + + + + Defines whether one navigation item can have content output immediately + + + + + The HtmlAttributes applied to objects which can have child items + + + + + Initializes a new instance of the class. + + The view context. + The client side object writer factory. + + + + Renders the component. + + + + + Writes the initialization script. + + The writer. + + + + Writes the cleanup script. + + The writer. + + + + Writes the HTML. + + + + + Gets or sets the name. + + The name. + + + + Gets the id. + + The id. + + + + Gets the HTML attributes. + + The HTML attributes. + + + + Gets or sets the asset key. + + The asset key. + + + + Gets or sets the script files path. Path must be a virtual path. + + The script files path. + + + + Gets or sets the script file names. + + The script file names. + + + + Gets the client side object writer factory. + + The client side object writer factory. + + + + Gets or sets the view context to rendering a view. + + The view context. + + + + Defines the fluent interface for configuring the component. + + + + + View component Builder base class. + + + + + Helper interface used to hide the base + members from the fluent API to make it much cleaner + in Visual Studio intellisense. + + + + + Equalses the specified value. + + The value. + + + + + Gets the hash code. + + + + + + Gets the type. + + + + + + Toes the string. + + + + + + Initializes a new instance of the class. + + The component. + + + + Performs an implicit conversion from to TViewComponent. + + The builder. + The result of the conversion. + + + + Returns the internal view component. + + + + + + Sets the name of the component. + + The name. + + + + + Sets the web asset key for the component. + + The key. + + + + + Sets the Scripts files path.. Path must be a virtual path. + + The path. + + + + + Sets the Script file names. + + The names. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Renders the component. + + + + + Gets the view component. + + The component. + + + + Initializes a new instance of the class. + + The component. + + + + Use it to enable filling the first matched item text. + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .AutoFill(true) + %> + + + + + + + Use it to configure Data binding. + + Action that configures the data binding options. + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "ComboBox") + ); + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => + events.OnLoad("onLoad") + ) + %> + + + + + + Configures the effects of the AutoComplete. + + The action which configures the effects. + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Effects(fx => + { + fx.Slide() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Use it to configure filtering settings. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => filtering.Enabled(true) + .FilterMode(AutoCompleteFilterMode.Contains)); + %> + + + + + + Use it to enable multiple values. + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Multiple(); + %> + + + + + + Use it to configure autocompleting multiple values. + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Multiple(multi => multi.Enabled(true) + .Separator(" ")); + %> + + + + + + Use it to enable highlighting of first matched item. + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .HighlightFirstMatch(true) + %> + + + + + + Enables or disables the autocomplete. + + + + + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enable or disable autocompleting multiple values into a single field + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Multiple(multi => + { + multi.Enabled((bool)ViewData["multiple"]); + }) + %> + + + + + + Set multiple values separator. + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Multiple(multi => + { + multi.Separator(", "); + }) + %> + + + + + + Represents the options of the axis labels + + + + + Represents the options of the chart labels + + + + + Defines a generic Chart labels + + + + + Gets the axis serializer. + + + + + Gets or sets the label font. + + + + + Gets or sets a value indicating if the label is visible + + + + + Gets or sets the label background. + + + + + Gets or sets the label border. + + + + + Gets or sets the label margin. + + + + + Gets or sets the label padding. + + + + + Gets or sets the label color. + + + + + Gets or sets the label format. + + + + + Gets or sets the label template. + + + + + Gets or sets the label opacity. + + + + + Gets or sets the label rotation. + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the label font. + + + Specify a font in CSS format. For example "12px Arial,Helvetica,sans-serif". + + + + + Gets or sets a value indicating if the label is visible + + + + + Gets or sets the label background. + + + The label background. + + + + + Gets or sets the label border. + + + The label border. + + + + + Gets or sets the label margin. + + + The label margin. + + + + + Gets or sets the label padding. + + + The label padding. + + + + + Gets or sets the label color. + + + The label color. + + + + + Gets or sets the label format. + + + The label format. + + + + + Gets or sets the label template. + + + The label template. + + + + + Gets or sets the label opacity. + + + The label opacity. + + + + + Gets or sets the label opacity. + + + The label opacity. + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Represents a category axis in the component + + The type of the data item + + + + Represents a chart axis + + + + + Defines a generic Chart axis + + + + + Gets the axis serializer. + + + + + Gets or sets the minor tick size. + + + + + Gets or sets the major tick size. + + + + + The major tick type. + + + + + The minor tick type. + + + + + The major grid lines configuration. + + + + + The minor grid lines configuration. + + + + + The axis line configuration. + + + + + The value at which the first perpendicular axis crosses this axis + + + + + The axis labels + + + + + The axis orientation + + + + + Initializes a new instance of the class. + + The chart. + + + + Gets the axis serializer. + + + + + Gets or sets the chart. + + The chart. + + + + Gets or sets the minor tick size. The default is 3. + + + + + Gets or sets the major tick size. The default is 4. + + + + + The major tick type. The default is . + + + + + The minor tick type. The default is . + + + + + The major grid lines configuration. + + + + + The minor grid lines configuration. + + + + + The axis line configuration. + + + + + The value at which the first perpendicular axis crosses this axis + + + + + The axis labels + + + + + The axis orientation + + + + + Represents a category axis + + + + + The categories displayed on the axis + + + + + The Model member used to populate the + + + + + Initializes a new instance of the class. + + The chart. + + + + Gets the axis serializer. + + + + + The categories displayed on the axis + + + + + Gets the member name to be used as category. + + The member. + + + + Represents a numeric axis in the component + + The type of the data item + + + + Represents a numeric axis + + + + + Represents a generic value axis + + + + + The axis minimum value + + + + + The axis maximum value + + + + + The interval between major divisions + + + + + The axis label format + + + + + Initializes a new instance of the class. + + The chart. + + + + Gets the axis serializer. + + + + + The minimum axis value. + + + + + The axis maximum value. + + + + + The interval between major divisions + + + + + The axis label format + + + + + Represents a category axis in the component + + The type of the data item + + + + Represents a axis defaults. + + + + + Initializes a new instance of the class. + + The chart. + + + + Gets the axis serializer. + + + + + Telerik Chart for ASP.NET MVC is a view component for rendering charts. + Features: + + Bar Chart + Column Chart + + For more information, see the online documentation. + + + + + For internal use + + + + + The component UrlGenerator + + + + + The component view context + + + + + Initializes a new instance of the class. + + The view context. + The client side object writer factory. + The URL Generator. + + + + Writes the initialization script. + + The writer object. + + + + Writes the Chart HTML. + + The writer object. + + + + Gets or sets the data source. + + The data source. + + + + Represents the client-side event handlers for the component + + + + + Gets or sets the URL generator. + + The URL generator. + + + + Gets or sets the Chart area. + + + The Chart area. + + + + + Gets or sets the Plot area. + + + The Plot area. + + + + + Gets or sets the Chart theme. + + + The Chart theme. + + + + + Gets or sets the Chart title. + + + The Chart title. + + + + + Gets or sets the Chart legend. + + + The Chart legend. + + + + + Gets or sets the Chart transitions. + + + The Chart Transitions. + + + + + Gets the chart series. + + + + + Gets the default settings for all series. + + + + + Configuration for the default category axis (if any) + + + + + Configuration for the default value axis + + + + + Configuration for the default X axis in scatter charts + + + + + Configuration for the default Y axis in scatter charts + + + + + Configuration for the default axis + + + + + Gets the data binding configuration. + + + + + Gets or sets the series colors. + + + + + Gets or sets the data point tooltip options + + + + + Represents the client-side events of the component. + + + + + Initializes a new instance of the class. + + + + + Serializes the client-side events. + + The writer object to serialize to. + + + + Defines the Load client-side event handler + + + + + Defines the DataBound client-side event handler + + + + + Defines the SeriesClick client-side event handler + + + + + Represents the chart title + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the title text + + + + + Gets or sets the title font. + + + Specify a font in CSS format. For example "16px Arial,Helvetica,sans-serif". + + + + + Gets or sets the title position. + + + The default value is + + + + + Gets or sets the title text alignment. + + + The default value is + + + + + Gets or sets a value indicating if the title is visible + + + + + Gets or sets the title margin + + + + + Gets or sets the title background color + + + + + Gets or sets the title padding + + + + + Gets or sets the legend border + + + + + Represents the chart legend + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the legend font. + + + Specify a font in CSS format. For example "16px Arial,Helvetica,sans-serif". + + + + + Gets or sets the legend labels color. + + + Specify the color of the labels. + + + + + Gets or sets the legend position. + + + The default value is + + + + + Gets or sets the legend X-offset from its position. + + + + + Gets or sets the legend Y-offset from its position. + + + + + Gets or sets a value indicating if the legend is visible + + + + + Gets or sets the legend margin + + + + + Gets or sets the legend margin + + + + + Gets or sets the legend background color + + + + + Gets or sets the legend border + + + + + Represents chart element spacing + + + + + Initializes a new instance of the class. + + The spacing to be applied in all directions. + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the top spacing. + + + + + Gets or sets the right spacing. + + + + + Gets or sets the bottom spacing. + + + + + Gets or sets the left spacing. + + + + + Represents chart element border + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the width of the border. + + + + + Gets or sets the color of the border. + + + + + Gets or sets the dash type of the border. + + + + + Represents the Chart area options + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the Chart area background. + + + The Chart area background. + + + + + Gets or sets the Chart area border. + + + The Chart area border. + + + + + Gets or sets the Chart area margin. + + + The Chart area margin. + + + + + Represents chart line styling + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the line width. + + + + + Gets or sets the line color. + + + + + Gets or sets the line visibility. + + + + + Gets or sets the line dash type. + + + + + Represents the chart data point tootlip + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the legend font. + + + Specify a font in CSS format. For example "16px Arial,Helvetica,sans-serif". + + + + + Gets or sets a value indicating if the legend is visible + + + + + Gets or sets the legend margin + + + + + Gets or sets the legend border + + + + + Gets or sets the label background. + + + The label background. + + + + + Gets or sets the label color. + + + The label color. + + + + + Gets or sets the label format. + + + The label format. + + + + + Gets or sets the tooltip template. + + + The tooltip template. + + + + + Gets or sets the tooltip opacity. + + + The tooltip opacity. + + + + + Defines the position of axis ticks + + + + + The tick is drawn on the outer side of the axis + + + + + No tick is drawn + + + + + Defines the position of bar/column chart labels + + + + + The label is positioned at the bar center + + + + + The label is positioned inside, near the end of the bar + + + + + The label is positioned inside, near the base of the bar + + + + + The label is positioned outside, near the end of the bar. + Not applicable for stacked bar series. + + + + + Defines the position chart legend + + + + + The legend is positioned on the top + + + + + The legend is positioned on the bottom + + + + + The legend is positioned on the left + + + + + The legend is positioned on the right + + + + + The legend is positioned using OffsetX and OffsetY + + + + + Defines the position of point labels. + + + + + The label is positioned at the top of the point marker. + + + + + The label is positioned at the right of the point marker. + + + + + The label is positioned at the bottom of the point marker. + + + + + The label is positioned at the left of the point marker. + + + + + Defines the position of line chart labels. + + + + + The label is positioned at the top of the line chart marker. + + + + + The label is positioned at the right of the line chart marker. + + + + + The label is positioned at the bottom of the line chart marker. + + + + + The label is positioned at the left of the line chart marker. + + + + + Defines the behavior for handling missing values in line series. + + + + + The value is interpolated from neighboring points. + + + + + The value is assumed to be zero. + + + + + The line stops before the missing point and continues after it. + + + + + Defines the shape of the marker. + + + + + The marker shape is square. + + + + + The marker shape is triangle. + + + + + The marker shape is circle. + + + + + Defines text alignment options + + + + + The text is aligned to the left + + + + + The text is aligned to the middle + + + + + The text is aligned to the right + + + + + Defines the position chart title + + + + + The title is positioned on the top + + + + + The title is positioned on the bottom + + + + + Specifies a line dash type. + + + + + Specifies a solid line. + + + + + Specifies a line consisting of dots. + + + + + Specifies a line consisting of dashes. + + + + + Specifies a line consisting of a repeating pattern of long-dash. + + + + + Specifies a line consisting of a repeating pattern of dash-dot. + + + + + Specifies a line consisting of a repeating pattern of lond-dash-dot. + + + + + Specifies a line consisting of a repeating pattern of long-dash-dot-dot. + + + + + Defines the available pie series effects overlays + + + + + The pies have no effect overlay + + + + + The pie segments have sharp bevel effect overlay + + + + + The pie segments have sharp bevel effect overlay + + + + + Defines the alignment of the pie labels. + + + + + The labels are positioned in circle around the pie chart. + + + + + The labels are positioned in columns to the left and right of the pie chart. + + + + + Defines the behavior for handling missing values in scatter line series. + + + + + The value is interpolated from neighboring points. + + + + + The line stops before the missing point and continues after it. + + + + + Defines the position of pie chart labels. + + + + + The label is positioned at the center of the pie segment. + + + + + The label is positioned inside, near the end of the pie segment. + + + + + The label is positioned outside, near the end of the pie segment. + The label and the pie segment are connected with connector line. + + + + + Defines chart axis orientation + + + + + The axis is verical + + + + + The axis is horizontal + + + + + Defines the fluent interface for configuring of all axes. + + + + + Defines the fluent interface for configuring axes. + + + The type of the series builder. + + + + Initializes a new instance of the class. + + The axis. + + + + Sets the axis minor tick size. + + The minor tick size. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().MinorTickSize(10)) + %> + + + + + + Sets the axis major tick size. + + The major tick size. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().MajorTickSize(10)) + %> + + + + + + Sets the major tick type. + + The major tick type. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().MajorTickType(ChartAxisTickType.Inside)) + %> + + + + + + Sets the minor tick type. + + The minor tick type. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().MinorTickType(ChartAxisTickType.Inside)) + %> + + + + + + Configures the major grid lines. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .MajorGridLines(lines => lines.Visible(true)) + ) + %> + + + + + + Sets color and width of the major grid lines and enables them. + + The major gridlines width + The major gridlines color (CSS syntax) + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .MajorGridLines(2, "red", ChartDashType.Dot) + ) + %> + + + + + + Configures the minor grid lines. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .MinorGridLines(lines => lines.Visible(true)) + ) + %> + + + + + + Sets color and width of the minor grid lines and enables them. + + The minor gridlines width + The minor gridlines color (CSS syntax) + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .MinorGridLines(2, "red", ChartDashType.Dot) + ) + %> + + + + + + Configures the axis line. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .Line(line => line.Color("#f00")) + ) + %> + + + + + + Sets color and width of the lines and enables them. + + The axis line width + The axis line color (CSS syntax) + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + .Line(2, "#f00", ChartDashType.Dot) + ) + %> + + + + + + Sets value at which the first perpendicular axis crosses this axis. + + The value at which the first perpendicular axis crosses this axis. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .CategoryAxis(axis => axis.AxisCrossingValue(4)) + %> + + + + + + Configures the axis labels. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis + .Labels(labels => labels + .Color("Red") + .Visible(true) + ); + ) + %> + + + + + + Sets the visibility of numeric axis chart labels. + + The visibility. The default value is false. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis.Labels(true)) + %> + + + + + + Gets or sets the axis. + + The axis. + + + + Initializes a new instance of the class. + + The chart. + + + + Defines the fluent interface for configuring the chart labels. + + + + + Defines the fluent interface for configuring the chart labels. + + + + + Initializes a new instance of the class. + + The labels configuration. + + + + Sets the labels font + + The labels font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Font("14px Arial,Helvetica,sans-serif") + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Sets the labels visibility + + The labels visibility. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Sets the labels background color + + The labels background color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Background("Red") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels text color + + The labels text color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Color("Red") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels margin + + The labels top margin. + The labels right margin. + The labels bottom margin. + The labels left margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Margin(0, 5, 5, 0) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels margin + + The labels margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Margin(20) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels padding + + The labels top padding. + The labels right padding. + The labels bottom padding. + The labels left padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Padding(0, 5, 5, 0) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels padding + + The labels padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Padding(20) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels border + + The labels border width. + The labels border color (CSS syntax). + The labels border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Border(1, "Red", ChartDashType.Dot) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels format. + + The labels format. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Format("{0:C}") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels template. + + The labels template. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Template("${TotalSales}") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels opacity. + + + The series opacity in the range from 0 (transparent) to 1 (opaque). + The default value is 1. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Opacity(0.5) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels text rotation + + The labels text rotation. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Rotation(45) + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Initializes a new instance of the class. + + The labels configuration. + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Initializes a new instance of the class. + + The data labels configuration. + + + + Sets the labels align + + The labels align. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Labels(labels => labels + .Align(ChartPieLabelsAlign.Column) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Sets the labels distance + + The labels distance. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Labels(labels => labels + .Distance(20) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Sets the labels position + + The labels position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Labels(labels => labels + .Position(ChartPieLabelsPosition.Center) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the chart data points tooltip. + + + + + Initializes a new instance of the class. + + The data point tooltip configuration. + + + + Sets the tooltip font + + The tooltip font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Font("14px Arial,Helvetica,sans-serif") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip visibility + + The tooltip visibility. The tooltip is not visible by default. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip background color + + + The tooltip background color. + The default is determined from the series color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Background("Red") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip text color + + + The tooltip text color. + The default is the same as the series labels color. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Color("Red") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip padding + + The tooltip top padding. + The tooltip right padding. + The tooltip bottom padding. + The tooltip left padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Padding(0, 5, 5, 0) + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip padding + + The tooltip padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Padding(20) + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip border + + The tooltip border width. + The tooltip border color (CSS syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Border(1, "Red") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip format + + The tooltip format. + + The format string is ignored if a template is set. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Format("{0:C}") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip template + + The tooltip template. + + A client-side template for the tooltip. + + + Available template variables: + + value - the point value + category - the category name + series - the data series configuration object + dataItem - the original data item (client-side binding only) + + + + The format string is ignored if a template is set. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Template("<#= category #> - <#= value #>") + .Visible(true) + ) + .Render(); + %> + + + + + + Sets the tooltip opacity. + + + The series opacity in the range from 0 (transparent) to 1 (opaque). + The default value is 1. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => tooltip + .Opacity(0.5) + .Visible(true) + ) + .Render(); + %> + + + + + + Defines the fluent interface for configuring pie series. + + The type of the data item + + + + Initializes a new instance of the class. + + The series. + + + + Sets the name of the series. + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).Name("Sales")) + %> + + + + + + Sets the series opacity. + + + The series opacity in the range from 0 (transparent) to 1 (opaque). + The default value is 1. + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).Opacity(0.5)) + %> + + + + + + Sets the padding of the chart. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).Padding(100)) + .Render(); + %> + + + + + + Sets the start angle of the first pie segment. + + The pie start angle(in degrees). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).StartAngle(100)) + .Render(); + %> + + + + + + Configures the pie chart labels. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(s => s.Sales, s => s.DateString) + .Labels(labels => labels + .Color("red") + .Visible(true) + ); + ) + %> + + + + + + Sets the visibility of pie chart labels. + + The visibility. The default value is false. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(s => s.Sales, s => s.DateString) + .Labels(true); + ) + %> + + + + + + Sets the pie segments border + + The pie segments border width. + The pie segments border color (CSS syntax). + The pie segments border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).Border(1, "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Sets the pie segments effects overlay + + + The pie segment effects overlay. + The default value is set in the theme. + + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Pie(s => s.Sales, s => s.DateString).Overlay(ChartPieSeriesOverlay.None)) + .Render(); + %> + + + + + + Configures the pie chart connectors. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(s => s.Sales, s => s.DateString) + .Connectors(c => c + .Color("red") + ); + ) + %> + + + + + + Gets or sets the series. + + The series. + + + + Defines the fluent interface for configuring scatter series. + + The type of the data item + + + + Defines the fluent interface for configuring scatter series. + + The type of the data item + + + + Defines the fluent interface for configuring series. + + + The type of the series builder. + + + + Initializes a new instance of the class. + + The series. + + + + Sets the series title displayed in the legend. + + The title. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Name("Sales")) + %> + + + + + + Sets the series opacity. + + + The series opacity in the range from 0 (transparent) to 1 (opaque). + The default value is 1. + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Opacity(0.5)) + %> + + + + + + Sets the bar fill color + + The bar fill color (CSS syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Color("Red")) + .Render(); + %> + + + + + + Gets or sets the series. + + The series. + + + + Initializes a new instance of the class. + + The series. + + + + Configures the scatter chart labels. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Scatter(s => s.x, s => s.y) + .Labels(labels => labels + .Position(ChartBarLabelsPosition.Above) + .Visible(true) + ); + ) + %> + + + + + + Sets the visibility of scatter chart labels. + + The visibility. The default value is false. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Scatter(s => s.x, s => s.y) + .Labels(true); + ) + %> + + + + + + Configures the scatter chart markers. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Scatter(s => s.x, s => s.y) + .Markers(markers => markers + .Type(ChartMarkerShape.Triangle) + ); + ) + %> + + + + + + Sets the visibility of scatter chart markers. + + The visibility. The default value is true. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Scatter(s => s.x, s => s.y) + .Markers(true); + ) + %> + + + + + + Initializes a new instance of the class. + + The series. + + + + Defines the fluent interface for configuring scatter line series. + + The type of the data item + + + + Initializes a new instance of the class. + + The series. + + + + Sets the chart line width. + + The line width. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.ScatterLine(s => s.x, s => s.y).Width(2)) + .Render(); + %> + + + + + + Sets the chart line dash type. + + The line dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.ScatterLine(s => s.x, s => s.y).DashType(ChartDashType.Dot)) + .Render(); + %> + + + + + + Configures the behavior for handling missing values in scatter line series. + + The missing values behavior. The default is to leave gaps. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .ScatterLine(s => s.x, s => s.y) + .MissingValues(ChartScatterLineMissingValues.Interpolate); + ) + %> + + + + + + Defines the fluent interface for configuring the chart connectors. + + + + + Initializes a new instance of the class. + + The connectors configuration. + + + + Sets the connectors width + + The connectors width. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Connectors(c => c + .Width(3) + ); + ) + .Render(); + %> + + + + + + Sets the connectors color + + The connectors color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Connectors(c => c + .Color(red) + ); + ) + .Render(); + %> + + + + + + Sets the connectors padding + + The connectors padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Pie(p => p.Sales) + .Connectors(c => c + .Padding(10) + ); + ) + .Render(); + %> + + + + + + Represents an object that can serialize itself + + + + + Serializes the current instance + + + + + Represents chart line markers styling + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the markers size. + + + + + Gets or sets the markers background. + + + + + Gets or sets the markers type. + + + + + Gets or sets the markers visibility. + + + + + Gets or sets the markers border. + + + + + Defines the fluent interface for configuring line series. + + The type of the data item + + + + Initializes a new instance of the class. + + The series. + + + + Sets a value indicating if the lines should be stacked. + + A value indicating if the lines should be stacked. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Line(s => s.Sales).Stack(true)) + %> + + + + + + Configures the line chart labels. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Labels(labels => labels + .Position(ChartBarLabelsPosition.Above) + .Visible(true) + ); + ) + %> + + + + + + Sets the visibility of line chart labels. + + The visibility. The default value is false. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Labels(true); + ) + %> + + + + + + Sets the line chart line width. + + The line width. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Line(s => s.Sales).Width(2)) + .Render(); + %> + + + + + + Sets the line chart line dash type. + + The line dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Line(s => s.Sales).DashType(ChartDashType.Dot)) + .Render(); + %> + + + + + + Configures the line chart markers. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Type(ChartMarkerShape.Triangle) + ); + ) + %> + + + + + + Sets the visibility of line chart markers. + + The visibility. The default value is true. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(true); + ) + %> + + + + + + Configures the behavior for handling missing values in line series. + + The missing values behavior. The default is to leave gaps. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .MissingValues(ChartLineMissingValues.Interpolate); + ) + %> + + + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Initializes a new instance of the class. + + The data labels configuration. + + + + Sets the labels position + + The labels position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Labels(labels => labels + .Position(ChartPointLabelsPosition.Above) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + This method will be removed in future versions. Use Position(ChartPointLabelsPosition) instead. + + The labels position. + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Initializes a new instance of the class. + + The line chart markers configuration. + + + + Sets the markers shape type. + + The markers shape type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Type(ChartMarkerShape.Triangle) + ); + ) + .Render(); + %> + + + + + + Sets the markers size. + + The markers size. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Size(10) + ); + ) + .Render(); + %> + + + + + + Sets the markers visibility + + The markers visibility. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Sets the markers border + + The markers border width. + The markers border color (CSS syntax). + The markers border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Border(1, "Red", ChartDashType.Dot) + ); + ) + .Render(); + %> + + + + + + The background color of the current series markers. + + The background color of the current series markers. The background color is series color. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Background("Red"); + ); + ) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The plot area. + + + + Sets the Plot area background color + + The background color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.Background("Red")) + .Render(); + %> + + + + + + Sets the Plot area margin + + The plot area top margin. + The plot area right margin. + The plot area bottom margin. + The plot area left margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.Margin(0, 5, 5, 0)) + .Render(); + %> + + + + + + Sets the Plot area margin + + The plot area margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.Margin(5)) + .Render(); + %> + + + + + + Sets the Plot area border + + The border width. + The border color (CSS syntax). + The border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.Border(1, "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Represents the Plot area options + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the Plot area background. + + + The Plot area background. + + + + + Gets or sets the Plot area border. + + + The Chart area border. + + + + + Gets or sets the Plot area margin. + + + The Chart area margin. + + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Initializes a new instance of the class. + + The data labels configuration. + + + + Sets the labels position + + The labels position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Position(ChartBarLabelsPosition.InsideEnd) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The chart area. + + + + Sets the Chart area background color + + The background color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.Background("Red")) + .Render(); + %> + + + + + + Sets the Chart area margin + + The chart area top margin. + The chart area right margin. + The chart area bottom margin. + The chart area left margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.Margin(0, 5, 5, 0)) + .Render(); + %> + + + + + + Sets the Chart area margin + + The chart area margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.Margin(5)) + .Render(); + %> + + + + + + Sets the Chart area border + + The border width. + The border color (CSS syntax). + The border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.Border(1, "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Defines the fluent interface for configuring . + + + + + Initializes a new instance of the class. + + The chart line. + + + + Sets the line color + + The line color (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Color("#f00"))) + .Render(); + %> + + + + + + Sets the line width + + The line width. + + + <% Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Width(2))) + .Render(); + %> + + + + + + Sets the line visibility + + The line visibility. + + + <% Html.Telerik().Chart() + .Name("Chart") + .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Visible(true))) + .Render(); + %> + + + + + + Defines the default settings for bar series. + + + + + Defines the default settings for column series. + + + + + Defines the default settings for line series. + + + + + Defines the default settings for pie series. + + + + + Defines the default settings for scatter series. + + + + + Defines the default settings for scatter line series. + + + + + Represents the options of the bar chart labels + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the label position. + + + The default value is for clustered series and + for stacked series. + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables binding. + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Home").Enabled((bool)ViewData["bindSales"]); + }) + %> + + + + The Enabled method is useful when you need to enable binding based on certain conditions. + + + + + Sets the action, controller and route values for the select operation + + The route values of the Action method. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select(MVC.Home.SalesData().GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Home", new RouteValueDictionary{ {"month", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Home", new { month = 1 }); + }) + %> + + + + + + Sets the action and controller for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Home"); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"month", 1} }); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", new {month = 1}); + }) + %> + + + + + + Sets the route name for the select operation + + Name of the route. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default"); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select<HomeController>(controller => controller.SalesData())); + }) + %> + + + + + + Creates value axis for the . + + The type of the data item to which the chart is bound to + + + + Initializes a new instance of the class. + + The container. + + + + Defines a numeric value axis. + + + + + The parent Chart + + + + + Defines the fluent interface for configuring numeric axis. + + + + + Initializes a new instance of the class. + + The axis. + + + + Sets the axis minimum value. + + The axis minimum value. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().Min(4)) + %> + + + + + + Sets the axis maximum value. + + The axis maximum value. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().Max(4)) + %> + + + + + + Sets the interval between major divisions. + + The interval between major divisions. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().MajorUnit(4)) + %> + + + + + + Sets the axis orientation. The CategoryAxis orientation should be set to match. + + The orientation. The default value is inferred from the series type. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .CategoryAxis(c => c.Orientation(ChartAxisOrientation.Vertical)) + .ValueAxis(v => v.Orientation(ChartAxisOrientation.Horizontal)) + .Series(series => series.Line(s => s.Sales)) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The chart title. + + + + Sets the title text + + The text title. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Text("Chart")) + .Render(); + %> + + + + + + Sets the title font + + The title font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Font("16px Arial,Helvetica,sans-serif")) + .Render(); + %> + + + + + + Sets the title background color + + The background color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Background("red")) + .Render(); + %> + + + + + + Sets the title position + + The title position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Position(ChartTitlePosition.Bottom)) + .Render(); + %> + + + + + + Sets the title alignment + + The title alignment. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Align(ChartTextAlignment.Left)) + .Render(); + %> + + + + + + Sets the title visibility + + The title visibility. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Visible(false)) + .Render(); + %> + + + + + + Sets the title margin + + The title top margin. + The title right margin. + The title bottom margin. + The title left margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Margin(20)) + .Render(); + %> + + + + + + Sets the title margin + + The title margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Margin(20)) + .Render(); + %> + + + + + + Sets the title padding + + The title top padding. + The title right padding. + The title bottom padding. + The title left padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Padding(20)) + .Render(); + %> + + + + + + Sets the title padding + + The title padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Padding(20)) + .Render(); + %> + + + + + + Sets the title border + + The title border width. + The title border color. + The title dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Border(1, "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The chart legend. + + + + Sets the legend labels font + + The legend labels font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Font("16px Arial,Helvetica,sans-serif")) + .Render(); + %> + + + + + + Sets the legend labels color + + The labels color (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Color("red")) + .Render(); + %> + + + + + + Sets the legend background color + + The background color. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Background("red")) + .Render(); + %> + + + + + + Sets the legend position + + The legend position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Position(ChartLegendPosition.Bottom)) + .Render(); + %> + + + + + + Sets the legend visibility + + The legend visibility. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Visible(false)) + .Render(); + %> + + + + + + Sets the legend X and Y offset from its position + + The legend X offset from its position. + The legend Y offset from its position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Offset(10, 50)) + .Render(); + %> + + + + + + Sets the legend margin + + The legend top margin. + The legend right margin. + The legend bottom margin. + The legend top margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Margin(0, 5, 5, 0)) + .Render(); + %> + + + + + + Sets the legend margin + + The legend margin. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Margin(20)) + .Render(); + %> + + + + + + Sets the legend padding + + The legend top padding. + The legend right padding. + The legend bottom padding. + The legend left padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Padding(0, 5, 5, 0)) + .Render(); + %> + + + + + + Sets the legend padding + + The legend padding. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Padding(20)) + .Render(); + %> + + + + + + Sets the legend border + + The legend border width. + The legend border color (CSS syntax). + The legend border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Border(1, "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnDataBound(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnDataBound( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBound client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnDataBound("onDataBound")) + %> + + + + + + Defines the inline handler of the OnSeriesClick client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnSeriesClick(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSeriesClick client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnSeriesClick( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSeriesClick client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events.OnSeriesClick("onSeriesClick")) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Configures the client-side events. + + The client events configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .ClientEvents(events => events + .OnLoad("onLoad") + ) + %> + + + + + + Sets the theme of the chart. + + The Chart theme. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Theme("Telerik") + %> + + + + + + Sets the Chart area. + + The Chart area. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.margin(20)) + %> + + + + + + Sets the Plot area. + + The Plot area. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.margin(20)) + %> + + + + + + Sets the title of the chart. + + The Chart title. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Title("Yearly sales") + %> + + + + + + Defines the title of the chart. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Text("Yearly sales")) + %> + + + + + + Sets the legend visibility. + + A value indicating whether to show the legend. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Legend(false) + %> + + + + + + Configures the legend. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Visible(true).Position(ChartLegendPosition.Bottom)) + %> + + + + + + Defines the chart series. + + The add action. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => + { + series.Bar(s => s.SalesAmount); + }) + %> + + + + + + Defines the options for all chart series of the specified type. + + The configurator. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .SeriesDefaults(series => series.Bar().Stack(true)) + %> + + + + + + Defines the options for all chart axes of the specified type. + + The configurator. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .AxisDefaults(axisDefaults => axisDefaults.MinorTickSize(5)) + %> + + + + + + Configures the category axis + + The configurator + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .CategoryAxis(axis => axis + .Categories(s => s.DateString) + ) + %> + + + + + + Configures the value axis + + The configurator + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().TickSize(4)) + %> + + + + + + Configures the X-axis for scatter charts. + + The configurator + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .XAxis(a => a.Max(4)) + %> + + + + + + Configures the Y-axis for scatter charts. + + The configurator + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .YAxis(a => a.Max(4)) + %> + + + + + + Use it to configure binding. + + Use the configurator to set different data binding options. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Chart").Enabled((bool)ViewData["bindSales"]); + }) + %> + + + + + + Sets the series colors. + + A list of the series colors. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .SeriesColors(new string[] { "#f00", "#0f0", "#00f" }) + %> + + + + + + Sets the series colors. + + The series colors. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .SeriesColors("#f00", "#0f0", "#00f") + %> + + + + + + Use it to configure the data point tooltip. + + Use the configurator to set data tooltip options. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Tooltip(tooltip => + { + tooltip.Visible(true).Format("{0:C}"); + }) + %> + + + + + + Sets the data point tooltip visibility. + + + A value indicating if the data point tooltip should be displayed. + The tooltip is not visible by default. + + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Tooltip(true) + %> + + + + + + Enables or disabled animated transitions on initial load and refresh. + + + A value indicating if transition animations should be played. + + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Transitions(false) + %> + + + + + + Creates series for the . + + The type of the data item to which the chart is bound to + + + + Initializes a new instance of the class. + + The container. + + + + Defines bound bar series. + + + The expression used to extract the series value from the chart model + + + + + Defines bound bar series. + + + The name of the value member. + + + + + Defines bound bar series. + + + The type of the value member. + + + The name of the value member. + + + + + Defines bar series bound to inline data. + + + The data to bind to. + + + + + Defines bound column series. + + + The expression used to extract the series value from the chart model + + + + + Defines bound bar series. + + + The name of the value member. + + + + + Defines bound bar series. + + + The type of the value member. + + + The name of the value member. + + + + + Defines bar series bound to inline data. + + + The data to bind to + + + + + Defines bound line series. + + + The expression used to extract the series value from the chart model + + + + + Defines bound line series. + + + The name of the value member. + + + + + Defines bound line series. + + + The type of the value member. + + + The name of the value member. + + + + + Defines line series bound to inline data. + + + The data to bind to + + + + + Defines bound scatter series. + + + The expression used to extract the X value from the chart model + + + The expression used to extract the Y value from the chart model + + + + + Defines bound scatter series. + + + The name of the X value member. + + + The name of the Y value member. + + + + + + Defines scatter series bound to inline data. + + + The data to bind to + + + + + Defines bound scatter line series. + + + The expression used to extract the X value from the chart model + + + The expression used to extract the Y value from the chart model + + + + + Defines bound scatter line series. + + + The name of the X value member. + + + The name of the Y value member. + + + + + + Defines scatter line series bound to inline data. + + + The data to bind to + + + + + Defines bound pie series. + + + The expression used to extract the series value from the chart model + + + + + Defines bound pie series. + + + The expression used to extract the series value from the chart model + + + + + Defines bound pie series. + + + The name of the value member. + + + + + Defines bound pie series. + + + The name of the value member. + + + The name of the category member. + + + The name of the explode member. + + + + + Defines bound pie series. + + + The type of the value member. + + + The name of the value member. + + + The name of the category member. + + + The name of the explode member. + + + + + Defines pie series bound to inline data. + + + The data to bind to + + + + + The parent Chart + + + + + Defines the fluent interface for configuring bar series. + + The type of the data item + + + + Initializes a new instance of the class. + + The series. + + + + Sets a value indicating if the bars should be stacked. + + A value indicating if the bars should be stacked. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Stack(true)) + %> + + + + + + Set distance between category clusters. + + A value of 1 means that there is a total of 1 column width / bar height between categories. + The distance is distributed evenly on each side. + The default value is 1.5 + + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Gap(1)) + %> + + + + + + Sets a value indicating the distance between bars / categories. + + + Value of 1 means that the distance between bars is equal to their width. + The default value is 0 + + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .Series(series => series.Spacing(s => s.Sales).Spacing(1)) + %> + + + + + + Configures the bar chart labels. + + The configuration action. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Position(ChartBarLabelsPosition.InsideEnd) + .Visible(true) + ); + ) + %> + + + + + + Sets the visibility of bar chart labels. + + The visibility. The default value is false. + + + <%= Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(true); + ) + %> + + + + + + Sets the bars border + + The bars border width. + The bars border color (CSS syntax). + The bars border dash type. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Border("1", "#000", ChartDashType.Dot)) + .Render(); + %> + + + + + + Sets the bar effects overlay + + The bar effects overlay. The default is ChartBarSeriesOverlay.Glass + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Overlay(ChartBarSeriesOverlay.None)) + .Render(); + %> + + + + + + Configures the category axis for the . + + The type of the data item to which the chart is bound to + + + + Initializes a new instance of the class. + + The chart. + + + + Defines bound categories. + + + The expression used to extract the categories value from the chart model + + + + + Defines categories. + + + The list of categories + + + + + Defines categories. + + + The list of categories + + + + + Sets the axis orientation. The ValueAxis orientation should be set to match. + + The orientation. The default value is inferred from the series type. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .CategoryAxis(c => c.Orientation(ChartAxisOrientation.Vertical)) + .ValueAxis(v => v.Orientation(ChartAxisOrientation.Horizontal)) + .Series(series => series.Line(s => s.Sales)) + %> + + + + + + The parent Chart + + + + + Defines the fluent interface for configuring data binding. + + + + + Initializes a new instance of the class. + + The configuration. + + + + Use it to configure Ajax binding. + + + + <%= Html.Telerik().Chart() + .Name("Chart") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("SalesData", "Chart"); + }) + %> + + + + + + An HTML Builder for the Chart component + + + + + Initializes a new instance of the class. + + The Chart component. + + + + Creates the chart top-level div. + + + + + + Builds the Chart component markup. + + + + + + Represents chart bar or column series + + The Chart model type + The value type + + + + Represents Chart series bound to data. + + The Chart model type + The value type + + + + Represents a series in the component + + The type of the data item + + + + Represents chart series + + + + + Creates a serializer for the series + + + + + The series name. + + + + + The series opacity + + + + + The series base color + + + + + Initializes a new instance of the class. + + The chart. + + + + Creates a serializer for the series + + + + + Gets or sets the chart. + + The chart. + + + + Gets or sets the title of the series. + + The title. + + + + Gets or sets the series opacity. + + A value between 0 (transparent) and 1 (opaque). + + + + Gets or sets the series base color + + + + + Represents Chart series bound to data. + + + + + Gets the data member of the series. + + + + + The data used for binding. + + + + + Initializes a new instance of the class. + + The chart. + The expression. + + + + Initializes a new instance of the class. + + The chart. + The data. + + + + Initializes a new instance of the class. + + The chart. + + + + Binds the series + + + + + Gets a function which returns the value of the property to which the column is bound to. + + + + + The data used for binding. + + + + + The expression used to extract the value from the model + + + + + Gets the model data member name. + + The model data member name. + + + + Represents chart bar or column series + + + + + A value indicating if the bars should be stacked. + + + + + The distance between category clusters. + + + + + Space between bars. + + + + + The orientation of the bars. + + + + + Gets the bar chart data labels configuration + + + + + Gets or sets the bar's border + + + + + Gets or sets the effects overlay + + + + + Initializes a new instance of the class. + + The parent chart + The expression used to extract the series value from the chart model. + + + + Initializes a new instance of the class. + + The parent chart + The data to bind to. + + + + Initializes a new instance of the class. + + The chart. + + + + Creates a serializer for the series + + + + + A value indicating if the bars should be stacked. + + + + + The distance between category clusters. + + + A value of 1 means that there is a total of 1 column width / bar height between categories. + The distance is distributed evenly on each side. + + + + + Space between bars. + + + Value of 1 means that the distance between bars is equal to their width. + + + + + The orientation of the bars. + + + Can be either horizontal (bar chart) + or vertical vertical (column chart). + The default value is horizontal. + + + + + Gets the bar chart data labels configuration + + + + + + Gets or sets the bar border + + + + + Gets or sets the effects overlay + + + + + Represents the options of the pie chart connectors + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Defines the width of the line. + + + + + Defines the color of the line. + + + + + Defines the padding of the line. + + + + + Represents the options of the pie chart labels + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Defines the alignment of the pie labels. + + + + + Defines the distance between the pie chart and labels. + + + + + Defines the position of the pie labels. + + + + + Represents chart pie series + + The Chart model type + The value type + + + + Represents pie chart series + + + + + Gets the data category member of the series. + + + + + Gets the data expand member of the series. + + + + + Gets the data color member of the series. + + + + + Gets the pie chart data labels configuration + + + + + Gets or sets the pie's border + + + + + Gets or sets the effects overlay + + + + + Gets or sets the padding of the pie chart + + + + + Gets or sets the start angle of the first pie segment + + + + + Gets the pie chart connectors configuration + + + + + Initializes a new instance of the class. + + The chart. + The value expression. + The category expression. + The color expression. + The explode expression. + + + + Initializes a new instance of the class. + + The chart. + The data. + + + + Initializes a new instance of the class. + + The chart. + + + + Binds the series + + + + + Creates a serializer for the series + + + + + The expression used to extract the value from the model + + + + + Gets the model data member name. + + The model data member name. + + + + Gets the model data category member name. + + The model data category member name. + + + + Gets the model data explode member name. + + The model data explode member name. + + + + Gets the model data color member name. + + The model data color member name. + + + + Gets a function which returns the value of the property to which the column is bound to. + + + + + Gets a function which returns the category of the property to which the column is bound to. + + + + + Gets a function which returns the explode of the property to which the column is bound to. + + + + + Gets a function which returns the color of the property to which the column is bound to. + + + + + Gets the pie chart data labels configuration + + + + + Gets or sets the pie border + + + + + The pie chart data configuration. + + + + + Gets or sets the effects overlay. + + + + + Gets or sets the padding of the chart. + + + + + Gets or sets the start angle of the first pie segment. + + + + + Gets the pie chart connectors configuration + + + + + Defines the possible bar series orientation. + + + + + The bars are horizontal (bar chart) + + + + + The bars are vertical (column chart) + + + + + Represents the default settings for all series in the component + + The type of the data item + + + + Represents default chart series settings + + + + + The default settings for all bar series + + + + + The default settings for all column series + + + + + The default settings for all line series + + + + + The default settings for all line series + + + + + The default settings for all scatter series + + + + + The default settings for all scatter line series + + + + + Initializes a new instance of the class. + + The chart. + + + + Creates a serializer for the series defaults + + + + + The default settings for all bar series. + + + + + The default settings for all column series. + + + + + The default settings for all line series. + + + + + The default settings for all pie series. + + + + + The default settings for all scatter series. + + + + + The default settings for all scatter line series. + + + + + Represents the options of the chart point labels + + + + + Initializes a new instance of the class. + + + + + Creates a serializer + + + + + Gets or sets the label position. + + + The default value is for clustered series and + for stacked series. + + + + + Represents chart line series + + The Chart model type + The value type + + + + Represents chart line chart series + + + + + A value indicating if the lines should be stacked. + + + + + Gets the line chart data labels configuration + + + + + The line chart markers configuration. + + + + + The line chart line width. + + + + + The line chart line dash type. + + + + + The behavior for handling missing values in line series. + + + + + Initializes a new instance of the class. + + The parent chart + The expression used to extract the series value from the chart model. + + + + Initializes a new instance of the class. + + The parent chart + The data to bind to. + + + + Initializes a new instance of the class. + + The chart. + + + + Creates a serializer for the series + + + + + A value indicating if the lines should be stacked. + + + + + Gets the line chart data labels configuration + + + + + The line chart markers configuration. + + + + + The line chart line width. + + + + + The behavior for handling missing values in line series. + + + + + The line chart line dashType. + + + + + Defines the available bar series effects overlays + + + + + The bars have no effect overlay + + + + + The bars have glass effect overlay + + + + + Represents chart scatter (XY) series + + The Chart model type + The value type + + + + Represents chart scatter series + + + + + Gets the X data member of the series. + + + + + Gets the Y data member of the series. + + + + + Gets the scatter chart data labels configuration + + + + + The scatter chart markers configuration. + + + + + The data used for binding. + + + + + Initializes a new instance of the class. + + The chart. + The X expression. + The Y expression. + + + + Initializes a new instance of the class. + + The chart. + The data. + + + + Initializes a new instance of the class. + + The chart. + + + + Binds the series + + + + + Creates a serializer for the series + + + + + The expression used to extract the X value from the model + + + + + The expression used to extract the Y value from the model + + + + + Gets the model X data member name. + + The model X data member name. + + + + Gets the model Y data member name. + + The model Y data member name. + + + + Gets a function which returns the value of the property to which the X value is bound to. + + + + + Gets a function which returns the value of the property to which the Y value is bound to. + + + + + Gets the scatter chart data labels configuration + + + + + The line chart markers configuration. + + + + + The scatter chart data source. + + + + + Represents chart scatter line series + + The Chart model type + The value type + + + + Represents chart scatter line series + + + + + The line chart line width. + + + + + The chart line dash type. + + + + + The behavior for handling missing values in scatter line series. + + + + + Initializes a new instance of the class. + + The chart. + The X expression. + The Y expression. + + + + Initializes a new instance of the class. + + The chart. + The data. + + + + Initializes a new instance of the class. + + The chart. + + + + Creates a serializer for the series + + + + + The chart line width. + + + + + The chart line dashType. + + + + + The behavior for handling missing values in scatter line series. + + + + + Represents the chart binding settings + + + + + Initializes a new instance of the class. + + The chart. + + + + Serializes the binding settings to the specified writer + + The settings key + The writer + + + + Gets or sets a value indicating if the binding is enabled + + + + + The request settings for the Select operation + + + + + Represents the chart data binding settings + + + + + Initializes a new instance of the class. + + The chart. + + + + Represents the chart Ajax binding settings + + + + + Gets the id. + + The id. + + + + Gets the items of the ComboBox. + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables filtering. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => + { + filtering.Enabled((bool)ViewData["filtering"]); + }) + %> + + + + The Enabled method is useful when you need to enable/disable filtering based on certain conditions. + + + + + Defines filter mode. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => + { + filtering.FilterMode(AutoCompleteFilterMode.StartsWith); + }) + %> + + + + + + Set minimum chars number needed to start filtering. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => + { + filtering.MinimumChars(2); + }) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => + events.OnLoad("onLoad") + ) + %> + + + + + + Configures the effects of the dropdownlist. + + The action which configures the effects. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Effects(fx => + { + fx.Slide() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Defines the items in the DropDownList + + The add action. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + + + Sets the HTML attributes of the hidden input element. + + The HTML attributes. + + + + Sets the HTML attributes of the hidden input element. + + The HTML attributes. + + + + + + Initializes a new instance of the class. + + The component. + + + + Use it to enable filtering of items. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(); + %> + + + + + + Use it to configure filtering settings. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => filtering.Enabled(true) + .FilterMode(AutoCompleteFilterMode.Contains)); + %> + + + + + + Sets the HTML attributes of the input element. + + The HTML attributes. + + + + Sets the HTML attributes of the input element. + + The HTML attributes. + + + + Use it to enable filling the first matched item text. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .AutoFill(true) + %> + + + + + + Use it to configure Data binding. + + Action that configures the data binding options. + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "ComboBox") + ); + %> + + + + + + Use it to enable highlighting of first matched item. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .HighlightFirstMatch(true) + %> + + + + + + Use it to set selected item index + + Item index. + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .SelectedIndex(0); + %> + + + + + + Enables or disables the combobox. + + + + + Sets whether to open items list on focus. + + + + + Defines the fluent interface for building + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables binding. + + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home").Enabled((bool)ViewData["ajax"]); + }) + %> + + + + The Enabled method is useful when you need to enable binding based on certain conditions. + + + + + Sets the action, controller and route values for the select operation + + The route values of the Action method. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select(MVC.Home.Indec(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new { {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home"); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for the select operation + + Name of the route. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default"); + }) + %> + + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables cache of items. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home").Cache((bool)ViewData["cache"]); + }) + %> + + + + The Cache method is useful when you need to enable/disable caching based on certain conditions. + Default value is true. + + + + + Specifies delay of the Ajax/WebServer request. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home").Delay(400); + }) + %> + + + + The Delay method is useful when you need to postpone request to the server for some time. + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Defines filter mode. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => + { + filtering.FilterMode(AutoCompleteFilterMode.StartsWith); + }) + %> + + + + + + Set minimum chars number needed to start filtering. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Filterable(filtering => + { + filtering.MinimumChars(2); + }) + %> + + + + + + Defines the fluent interface for configuring the data binding. + + + + + Initializes a new instance of the class. + + The configuration. + + + + Use it to configure Ajax binding. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "TreeView") + ) + %> + + + + + + Use it to configure web service binding. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => dataBinding + .WebService().Select("~/Models/ProductDDI.asmx/GetProducts") + ) + %> + + + + + + Defines the fluent interface for building + + + + + Defines the fluent interface for configuring the treeview webservice. + + + + + Initializes a new instance of the class. + + The settings. + + + + Specify the web service url for loading data + + The web service url + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => dataBinding + .WebService().Select("~/Models/ProductDDI.asmx/GetProducts") + ) + %> + + + + + + Enables / disables web service functionality. + + Whether to enable or to disable the web service. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => dataBinding + .Ajax().Enabled(true).Select("_AjaxLoading", "DropDownList") + ) + %> + + + + The Enabled method is useful when you need to enable ajax based on certain conditions. + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables cache of items. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => + { + dataBinding.WebService().Select("~/Models/Product.asmx/GetProducts").Cache((bool)ViewData["cache"]); + }) + %> + + + + The Cache method is useful when you need to enable/disable caching based on certain conditions. + Default value is true. + + + + + Specifies delay of the Ajax/WebServer request. + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .DataBinding(dataBinding => + { + dataBinding.WebService().Select("~/Models/Product.asmx/GetProducts").Delay(400); + }) + %> + + + + The Delay method is useful when you need to postpone request to the server for some time. + + + + + Represents a client-side event of a view component + + + + + An action that renders the code of the client-side handler upon execution. + + + + + An action that renders the code of the client-side handler upon execution. + + + + + A function that returns the code of the client-side handler. + + + + + The name of the client-side handler function. + + + + + Gets the id. + + The id. + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Configures the effects of the datepicker. + + The action which configures the effects. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .Effects(fx => + { + fx.Height() + .Opacity() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Sets whether calendar should open on focus. + + + + + Sets the date format, which will be used to parse and format the machine date. + + + + + Sets the minimal date, which can be selected in DatePicker. + + + + + Sets the maximal date, which can be selected in DatePicker. + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => + events.OnLoad("onLoad").OnSelect("onSelect") + ) + %> + + + + + + Sets the Input HTML attributes. + + The HTML attributes. + + + + Sets the Input HTML attributes. + + The HTML attributes. + + + + Enables or disables the datepicker. + + + + + Defines the fluent interface for configuring datepicker client events. + + + + + Initializes a new instance of the class. + + Datepicker client-side events. + The context of the View. + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnOpen(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnOpen( + @<text> + %> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the OnOpen client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnOpen("onOpen")) + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnClose(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnClose( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the OnClose client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnClose("onClose")) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Sets the value of the dateTimePicker input + + + + + Sets the value of the dateTimePicker input + + + + + Sets the minimal date, which can be selected in DateTimePicker. + + + + + Sets the maximal date, which can be selected in DateTimePicker. + + + + + Sets the minimal time, which can be selected in DateTimePicker. + + + + + Sets the minimal time, which can be selected in DateTimePicker. + + + + + Sets the maximal time, which can be selected in DateTimePicker. + + + + + Sets the maximal time, which can be selected in DateTimePicker. + + + + + Sets the interval between hours. + + + + + Sets the title of the DateTimePicker button. + + + + + Sets the title of the DateTimePicker button. + + + + + Defines the fluent interface for configuring timepicker client events. + + + + + Initializes a new instance of the class. + + Timepicker client-side events. + The context of the View. + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnOpen(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnOpen( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnOpen client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnOpen("onOpen")) + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnClose(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnClose( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnClose client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + .ClientEvents(events => events.OnClose("onClose")) + %> + + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Defines the fluent interface for configuring the treeview webservice. + + + + + Initializes a new instance of the class. + + The settings. + + + + Represent item in the DropDownList/ComboBox items. + + + + + Gets the id. + + The id. + + + + Gets the items of the treeview. + + + + + Use it to set selected item index + + Item index. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .SelectedIndex(0); + %> + + + + + + Use it to configure Data binding. + + Action that configures the data binding options. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "DropDownList") + ); + %> + + + + + + Enables or disables the dropdownlist. + + + + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnOpen(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnOpen client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnOpen("onOpen")) + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnClose(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnClose( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnClose client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnClose("onClose")) + %> + + + + + + Defines the inline handler of the OnDataBinding client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBinding(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDataBinding client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBinding( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBinding client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBinding("OnDataBinding")) + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBound(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBound( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBound client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnDataBound("onDataBound")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Defines the fluent interface for configuring the data binding. + + + + + Initializes a new instance of the class. + + The configuration. + + + + Use it to configure Ajax binding. + + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "TreeView") + ) + %> + + + + + + Use it to configure web service binding. + + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .DataBinding(dataBinding => dataBinding + .WebService().Select("~/Models/ProductDDI.asmx/GetProducts") + ) + %> + + + + + + Defines the fluent interface for configuring child DropDonwList items. + + + + + Initializes a new instance of the class. + + The item. + + + + Sets the value for the item. + + The value. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Items(items => items.Add().Text("First item.")) + %> + + + + + + Sets the value for the item. + + The value. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Items(items => items.Add().Value("1")) + %> + + + + + + Define when the item will be expanded on intial render. + + If true the item will be selected. + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Items(items => + { + items.Add().Text("First Item").Selected(true); + }) + %> + + + + + + Creates items for the . + + + + + Initializes a new instance of the class. + + The settings. + + + + Defines a item. + + + + + + Determines if content of a given path can be browsed. + + The path which will be browsed. + true if browsing is allowed, otherwise false. + + + + Retrieves the content of a given folder. + + The folder's path, which content will be served. + A containing folder's files and child folders. + Throws 403 Forbidden if the supplied is outside of the valid paths. + Throws 404 File Not Found if refered folder does not exist. + + + + Determines if a file can be uploaded to a given path. + + The path to which the file should be uploaded. + The file which should be uploaded. + true if the upload is allowed, otherwise false. + + + + Uploads a file to a given path. + + The path to which the file should be uploaded. + The file which should be uploaded. + A containing the uploaded file's size and name. + Forbidden + + + + Determines if an image's thumbnail should be served. + + The path to image's thumbnail. + true if image's thumbnail should be served, otherwise false. + + + + Serves an image's thumbnail by given path. + + The path to the image. + Thumbnail of an image. + Throws 403 Forbidden if the is outside of the valid paths. + Throws 404 File Not Found if the refers to a non existant image. + + + + Determines if a file can be deleted. + + The path to the file. + true if file can be deleted, otherwise false. + + + + Deletes a file. + + The path to the file. + An empty . + Forbidden + + + + Determines if a folder can be deleted. + + The path to the folder. + true if folder can be deleted, otherwise false. + + + + Deletes a folder. + + The path to the folder. + An empty . + Forbidden + + + + Determines if a folder can be created. + + The path to the parent folder in which the folder should be created. + Name of the folder. + true if folder can be created, otherwise false. + + + + Creates a folder with a given name. + + The path to the parent folder in which the folder should be created. + Name of the folder. + An empty . + Forbidden + + + + Gets the base paths from which content will be served. + + + + + Gets the valid file extensions by which served files will be filtered. + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + @(Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + ))) + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnPaste client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnPaste(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + @(Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnPaste( + @<text> + function(e) { + //event handling code + } + </text> + )) + ) + + + + + + Defines the name of the JavaScript function that will handle the the OnPaste client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnPaste("onPaste")) + %> + + + + + + Defines the inline handler of the OnExecute client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnExecute(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnExecute client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnExecute( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnExecute client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnExecute("onExecute")) + %> + + + + + + Defines the inline handler of the OnSelectionChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnSelectionChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelectionChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnSelectionChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelectionChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnSelectionChange("onSelectionChange")) + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Sets the HTML content that will show initially in the editor. + + The action which renders the HTML content. + + <% Html.Telerik().Editor() + .Name("Editor") + .Value(() => { %> + <blockquote> + According to Deep Thought, the answer to the ultimate question of + life, the universe and everything is <strong>42</strong>. + </blockquote> + <% }) + .Render(); + %> + + + + + Sets the HTML content which the item should display as a string. + + An HTML string. + + <%= Html.Telerik().Editor() + .Name("Editor") + .Value("<blockquote>A towel has <strong>immense</strong> psychological value</blockquote>") + %> + + + + + Encode HTML content. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .Value("<blockquote>A towel has <strong>immense</strong> psychological value</blockquote>") + .Encode(true) + %> + + + + + Sets the localization culture of the editor. + + The culture. + + + <%= Html.Telerik().Editor() + .Name("Editor") + .Value("<blockquote>A towel has <strong>immense</strong> psychological value</blockquote>") + .Localizable("de-DE") + %> + + + + + + Enables toggle animation. + + + + + Enables opacity animation. + + + + + Enables opacity animation. + + Builder, which sets different opacity properties. + + + + Enables expand animation. + + + + + Enables expand animation. + + Builder, which sets different expand properties. + + + + Enables slide animation. + + + + + Enables slide animation. + + Builder, which sets different slide properties. + + + + Represents a column in the component + + The type of the data item + + + + Gets or sets the grid. + + The grid. + + + + Gets the member of the column. + + The member. + + + + Gets the template of the column. + + + + + Gets the header template of the column. + + + + + Gets the footer template of the column. + + + + + Gets or sets the title of the column. + + The title. + + + + Gets or sets the width of the column. + + The width. + + + + Gets or sets a value indicating whether this column is hidden. + + true if hidden; otherwise, false. + + Hidden columns are output as HTML but are not visible by the end-user. + + + + + Gets the header HTML attributes. + + The header HTML attributes. + + + + Gets the footer HTML attributes. + + The footer HTML attributes. + + + + Gets or sets a value indicating whether this column is visible. + + true if visible; otherwise, false. The default value is true. + + Invisible columns are not output in the HTML. + + + + + Gets the HTML attributes of the cell rendered for the column + + The HTML attributes. + + + + Initializes a new instance of the class. + + The property to which the column is bound to. + + + + Gets type of the property to which the column is bound to. + + + + + Gets or sets a value indicating whether this column is groupable. + + true if groupable; otherwise, false. + + + + Gets the name of the column + + + + + Gets a function which returns the value of the property to which the column is bound to. + + + + + Gets or sets a value indicating whether this is sortable. + + true if sortable; otherwise, false. The default value is true. + + + + Gets or sets a value indicating whether this is filterable. + + true if filterable; otherwise, false. The default value is true. + + + + Defines an interface that supports navigation. + + + + + Gets or sets the name of the route. + + The name of the route. + + + + Gets or sets the name of the controller. + + The name of the controller. + + + + Gets or sets the name of the action. + + The name of the action. + + + + Gets the route values. + + The route values. + + + + Gets or sets the URL. + + The URL. + + + + Defines the fluent interface for configuring + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables column context menu. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ColumnContextMenu(setting => setting.Enabled((bool)ViewData["enableColumnContextMenu"])) + %> + + + + The Enabled method is useful when you need to enable column context menu based on certain conditions. + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables binding. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home").Enabled((bool)ViewData["ajax"]); + }) + %> + + + + The Enabled method is useful when you need to enable binding based on certain conditions. + + + + + Sets the action, controller and route values for the select operation + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select(MVC.Home.Index().GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new { id = 1 }); + }) + %> + + + + + + Sets the action and controller for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home"); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for the select operation + + Name of the route. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default"); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select<HomeController>(controller => controller.Index())); + }) + %> + + + + + + Sets the action, controller and route values for the insert operation + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert(MVC.Home.Index(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for insert operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for insert operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert("Index", "Home", new { id = 1 }); + }) + %> + + + + + + Sets the action and controller for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert("Index", "Home"); + }) + %> + + + + + + Sets the route and values for insert operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for insert operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for insert operation + + Name of the route. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert("Default"); + }) + %> + + + + + + Sets the action, controller and route values for insert operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Insert<HomeController>(controller => controller.Index())); + }) + %> + + + + + + Sets the action, controller and route values for the update operation + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update(MVC.Home.Index(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for update operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update(MVC.Home.Index(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for update operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update("Index", "Home", new { id = 1 }); + }) + %> + + + + + + Sets the action and controller for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update("Index", "Home"); + }) + %> + + + + + + Sets the route and values for update operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for update operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for update operation + + Name of the route. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update("Default"); + }) + %> + + + + + + Sets the action, controller and route values for update operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Update<HomeController>(controller => controller.Index())); + }) + %> + + + + + + Sets the action, controller and route values for the delete operation + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete(MVC.Home.Index(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for delete operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Index", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for delete operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Index", "Home", new { id = 1 }); + }) + %> + + + + + + Sets the action and controller for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Index", "Home"); + }) + %> + + + + + + Sets the route and values for delete operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for delete operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for delete operation + + Name of the route. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete("Default"); + }) + %> + + + + + + Sets the action, controller and route values for delete operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Delete<HomeController>(controller => controller.Index())); + }) + %> + + + + + + Gets or sets the operation mode of the grid. By default the grid will make a request to the + server when it needs data for paging, sorting, filtering or grouping. If you set the + operation mode to GridOperationMode.Client it will make only one request for all data. Any other + paging, sorting, filtering or grouping will be performed client-side. + + + + + Defines the fluent interface for configuring command. + + The type of the model + The type of the command. + The type of the builder. + + + + Initializes a new instance of the class. + + The column. + + + + Sets the button type. + + The button type. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Sets the image HTML attributes. + + The Image HTML attributes. + + + + + Sets the image HTML attributes. + + The Image HTML attributes. + + + + + Defines the fluent interface for configuring + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables keyboard navigation. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .KeyboardNavigation(setting => setting.Enabled((bool)ViewData["enableKeyBoardNavigation"])) + %> + + + + The Enabled method is useful when you need to enable keyboard navigation based on certain conditions. + + + + + Enables or disables edit when TAB key is pressed. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .KeyboardNavigation(setting => setting.EditOnTab((bool)ViewData["enableEditOnTab"])) + %> + + + + The EditOnTab method is useful when InCell edit mode and use TAB key to edit the cell. + + + + + Sets the button type. + + The button type. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Sets the HTML attributes. + + The HTML attributes. + + + + + Sets the image HTML attributes. + + The Image HTML attributes. + + + + + Sets the image HTML attributes. + + The Image HTML attributes. + + + + + + + + + + + + + + + + Simple wrapper used to trick the Grid's generic DataSource when custom binding is used + + + + + + Defines the fluent interface for configuring grid editing. + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables grid editing. + + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .Editable(settings => settings.Enabled(true)) + %> + + + + The Enabled method is useful when you need to enable grid editing on certain conditions. + + + + + Specify an editor template which to be used for InForm or PopUp modes + + name of the editor template + This settings is applicable only when Mode is + or + + + + Provides additional view data in the editor template. + + + The additional view data will be provided if the editing mode is set to in-form or popup. For other editing modes + use + + An anonymous object which contains the additional data + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Editable(editing => editing.AdditionalViewData(new { customers = Model.Customers })) + %> + + + + + + Enables or disables delete confirmation. + + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .Editable(settings => settings.DisplayDeleteConfirmation(true)) + %> + + + + + + Gets the HTML attributes of the form rendered during editing + + The attributes. + + + + Gets the HTML attributes of the form rendered during editing + + The attributes. + + + + Defines the fluent interface for configuring template columns + + + + + Defines the fluent interface for configuring columns. + + + The type of the column builder. + + + + Initializes a new instance of the class. + + The column. + + + + Sets the title displayed in the header of the column. + + The text. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).Title("ID")) + %> + + + + + + Sets the HTML attributes applied to the header cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).HeaderHtmlAttributes(new {@class="order-header"})) + %> + + + + + + Sets the HTML attributes applied to the header cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).HeaderHtmlAttributes(new {@class="order-header"})) + %> + + + + + + Sets the HTML attributes applied to the footer cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).FooterHtmlAttributes(new {@class="order-footer"})) + %> + + + + + + Sets the HTML attributes applied to the footer cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).FooterHtmlAttributes(new {@class="order-footer"})) + %> + + + + + + Sets the HTML attributes applied to the content cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).HtmlAttributes(new {@class="order-cell"})) + %> + + + + + + Sets the HTML attributes applied to the content cell of the column. + + The attributes. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).HtmlAttributes(new {@class="order-cell"})) + %> + + + + + + Sets the width of the column in pixels. + + The width in pixels. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).Width(100)) + %> + + + + + + Sets the width of the column. + + The width to set. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => + { + %> + <%= Html.ActionLink("Edit", "Home", new { id = o.OrderID}) %> + <% + }) + .Render(); + %> + + + + + + Makes the column visible or not. By default all columns are visible. Invisible columns are not rendered in the output HTML. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).Visible((bool)ViewData["visible"])) + %> + + + + + + Makes the column hidden or not. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).Hidden((bool)ViewData["hidden"])) + %> + + + + + + Hides a column. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderID).Hidden()) + %> + + + + + + Sets the header template for the column. + + The action defining the template. + + + + Sets the header template for the column. + + The string defining the template. + + + + Sets the header template for the column. + + The action defining the template. + + + + Sets the footer template for the column. + + The action defining the template. + + + + Sets the footer template for the column. + + The string defining the template. + + + + Sets the footer template for the column. + + The action defining the template. + + + + Gets or sets the column. + + The column. + + + + Determines if group header should be shown. + + true if visible, otherwise false. + + + + Gets or sets a value indicating whether member access expression used + by this builder should be lifted to null. The default value is true; + + + true if member access should be lifted to null; otherwise, false. + + + + Provided expression should have string type + + + ArgumentException. + + + ArgumentException. + + + + Provided 's is not + + + + Provided type is not + + + + Provided 's is not + + + + + Provided 's is not + + + + + + + + ArgumentException. + + + did not implement . + + + + Invalid name for property or field; or indexer with the specified arguments. + + + + InvalidOperationException. + + + InvalidCastException. + + + + Holds extension methods for . + + + + + Child element with name specified by does not exists. + + + + + Represents a filtering descriptor which serves as a container for one or more child filtering descriptors. + + + + + Base class for all used for + handling the logic for property changed notifications. + + + + + Represents a filtering abstraction that knows how to create predicate filtering expression. + + + + + Creates a predicate filter expression used for collection filtering. + + The instance expression, which will be used for filtering. + A predicate filter expression. + + + + Creates a filter expression by delegating its creation to + , if + is , otherwise throws + + The instance expression, which will be used for filtering. + A predicate filter expression. + Parameter should be of type + + + + Creates a predicate filter expression used for collection filtering. + + The parameter expression, which will be used for filtering. + A predicate filter expression. + + + + Creates a predicate filter expression combining + expressions with . + + The parameter expression, which will be used for filtering. + A predicate filter expression. + + + + Gets or sets the logical operator used for composing of . + + The logical operator used for composition. + + + + Gets or sets the filter descriptors that will be used for composition. + + The filter descriptors used for composition. + + + + Logical operator used for filter descriptor composition. + + + + + Combines filters with logical AND. + + + + + Combines filters with logical OR. + + + + + The class enables implementation of custom filtering logic. + + + + + The method checks whether the passed parameter satisfies filter criteria. + + + + + Creates a predicate filter expression that calls . + + The parameter expression, which parameter + will be passed to method. + + + + If false will not execute. + + + + + Represents declarative filtering. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The member. + The filter operator. + The filter value. + + + + Creates a predicate filter expression. + + The parameter expression, which will be used for filtering. + A predicate filter expression. + + + + Determines whether the specified descriptor + is equal to the current one. + + The other filter descriptor. + + True if all members of the current descriptor are + equal to the ones of , otherwise false. + + + + + Determines whether the specified + is equal to the current descriptor. + + + + + Serves as a hash function for a particular type. + + + A hash code for the current filter descriptor. + + + + + Gets or sets the member name which will be used for filtering. + + The member that will be used for filtering. + + + + Gets or sets the type of the member that is used for filtering. + Set this property if the member type cannot be resolved automatically. + Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. + Changing this property did not raise + event. + + The type of the member used for filtering. + + + + Gets or sets the filter operator. + + The filter operator. + + + + Gets or sets the target filter value. + + The filter value. + + + + Represents collection of . + + + + + Operator used in + + + + + Left operand must be smaller than the right one. + + + + + Left operand must be smaller than or equal to the right one. + + + + + Left operand must be equal to the right one. + + + + + Left operand must be different from the right one. + + + + + Left operand must be larger than the right one. + + + + + Left operand must be larger than or equal to the right one. + + + + + Left operand must start with the right one. + + + + + Left operand must end with the right one. + + + + + Left operand must contain the right one. + + + + + Left operand must be contained in the right one. + + + + InvalidOperationException. + + + + Gets the key for this group. + + The key for this group. + + + + Gets the items in this groups. + + The items in this group. + + + + Gets a value indicating whether this instance has sub groups. + + + true if this instance has sub groups; otherwise, false. + + + + + Gets the count. + + The count. + + + + Gets the subgroups, if is true, otherwise empty collection. + + The subgroups. + + + + Gets a value indicating whether this instance has any sub groups. + + + true if this instance has sub groups; otherwise, false. + + + + + Gets the number of items in this group. + + The items count. + + + + Gets the subgroups, if is true, otherwise empty collection. + + The subgroups. + + + + Gets the items in this groups. + + The items in this group. + + + + Gets the key for this group. + + The key for this group. + + + + Gets the aggregate results generated for the given aggregate functions. + + The aggregate results for the provided aggregate functions. + functions is null. + + + + Gets or sets the aggregate functions projection for this group. + This projection is used to generate aggregate functions results for this group. + + The aggregate functions projection. + + + + Creates the aggregate expression that is used for constructing expression + tree that will calculate the aggregate result. + + The grouping expression. + + + + + + Generates default name for this function using this type's name. + + + Function name generated with the following pattern: + {.}_{} + + + + + Gets or sets the informative message to display as an illustration of the aggregate function. + + The caption to display as an illustration of the aggregate function. + + + + Gets or sets the name of the field, of the item from the set of items, which value is used as the argument of the aggregate function. + + The name of the field to get the argument value from. + + + + Gets or sets the name of the aggregate function, which appears as a property of the group record on which records the function works. + + The name of the function as visible from the group record. + + + + Gets or sets a string that is used to format the result value. + + The format string. + + + + Represents a collection of items. + + + + + Gets the with the specified function name. + + + First with the specified function name + if any, otherwise null. + + + + + Initializes a new instance of the class. + + The value of the result. + The number of arguments used for the calculation of the result. + Function that generated the result. + function is null. + + + + Initializes a new instance of the class. + + that generated the result. + function is null. + + + + Initializes a new instance of the class. + + The value of the result. + that generated the result. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Gets or sets the value of the result. + + The value of the result. + + + + Gets the formatted value of the result. + + The formatted value of the result. + + + + Gets or sets the number of arguments used for the calulation of the result. + + The number of arguments used for the calulation of the result. + + + + Gets or sets the text which serves as a caption for the result in a user interface.. + + The text which serves as a caption for the result in a user interface. + + + + Gets the name of the function. + + The name of the function. + + + + Gets the first which + is equal to . + + + The for the specified function if any, otherwise null. + + + + + Represents a function that returns the arithmetic mean of a set of arguments. + + + + + Represents an that uses aggregate extension + methods provided in using + as a member selector. + + + + + Base class for all aggregate functions that will use extension + methods in for aggregation. + + + + + Gets the type of the extension methods that holds the extension methods for + aggregation. For example or . + + + The type of that holds the extension methods. The default value is . + + + + + Creates the aggregate expression using . + + The grouping expression. + + + + + + Initializes a new instance of the class. + + + + + Gets the the Average method name. + + Average. + + + + Represents a function that returns the number of items in a set of items, including nested sets. + + + + + Represents an that uses aggregate extension + methods provided in . + + + + + Creates the aggregate expression using . + + The grouping expression. + + + + + + Initializes a new instance of the class. + + + + + Gets the the Count method name. + + Count. + + + + Gets the the First method name. + + First. + + + + Represents a function that returns the last item from a set of items. + + + + + Initializes a new instance of the class. + + + + + Gets the the Last method name. + + Last. + + + + Represents a function that returns the greatest item from a set of items. + + + + + Initializes a new instance of the class. + + + + + Gets the the Max method name. + + Max. + + + + Represents a function that returns the least item from a set of items. + + + + + Initializes a new instance of the class. + + + + + Gets the the Min method name. + + Min. + + + + Represents a function that returns the sum of all items from a set of items. + + + + + Initializes a new instance of the class. + + + + + Gets the the Min method name. + + Min. + + + + Represents grouping criteria. + + + + + Represents declarative sorting. + + + + + Gets or sets the member name which will be used for sorting. + + The member that will be used for sorting. + + + + Gets or sets the sort direction for this sort descriptor. If the value is null + no sorting will be applied. + + The sort direction. The default value is null. + + + + Changes the to the next logical value. + + + + + Gets or sets the type of the member that is used for grouping. + Set this property if the member type cannot be resolved automatically. + Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. + Changing this property did not raise + event. + + The type of the member used for grouping. + + + + Gets or sets the content which will be used from UI. + + The content that will be used from UI. + + + + Gets or sets the aggregate functions used when grouping is executed. + + The aggregate functions that will be used in grouping. + + + + Calculates unique int for given group in a group sequence, + taking into account groups order, each group key and groups' count. + + + + Gets or sets the format for displaying the value in the tooltip. + The value. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .Tooltip(tooltip => tooltip.Format("{0:P")) + %> + + + + + Display tooltip while drag. + The value. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .Tooltip(tooltip => tooltip.Enable(false)) + %> + + + + + Defines the fluent interface for configuring the . + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnSlide client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnSlide(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSlide client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => events.OnSlide("OnSlide")) + %> + + + + + Defines the fluent interface for configuring the . + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnSlide client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnSlide(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSlide client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => events.OnSlide("OnSlide")) + %> + + + + + Defines the fluent interface for configuring the component. + + + Initializes a new instance of the class. + The component. + + + Sets the value of the range slider. + + + Sets the value of the range slider. + + + Sets orientation of the range slider. + + + Sets a value indicating how to display the tick marks on the range slider. + + + Sets the minimum value of the range slider. + + + Sets the maximum value of the range slider. + + + Sets the step with which the range slider value will change. + + + Sets the delta with which the value will change when user click on the track. + + + Display tooltip while drag. + + + + Use it to configure tooltip while drag. + + Use builder to set different tooltip options. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .Tooltip(tooltip => tooltip + .Enable(true) + .Format("{0:P}") + ); + %> + + + + + Configures the client-side events. + The client events action. + + + <%= Html.Telerik().RangeSlider() + .Name("RangeSlider") + .ClientEvents(events => + events.OnLoad("onLoad").OnChange("onChange")) + %> + + + + + Sets a value indicating whether the range slider can respond to user interaction. + + + Defines the fluent interface for configuring the component. + + + Initializes a new instance of the class. + The component. + + + Sets the value of the slider. + + + Sets the title of the slider increase button. + + + Sets whether slider to be rendered with increase/decrease button. + + + Sets the title of the slider decrease button. + + + Sets orientation of the slider. + + + Sets a value indicating how to display the tick marks on the slider. + + + Sets the minimum value of the slider. + + + Sets the maximum value of the slider. + + + Sets the step with which the slider value will change. + + + Sets the delta with which the value will change when user click on the slider. + + + Display tooltip while drag. + + + + Use it to configure tooltip. + + Use builder to set different tooltip options. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .Tooltip(tooltip => tooltip + .Enable(true) + .Format("{0:P}") + ); + %> + + + + + Configures the client-side events. + The client events action. + + + <%= Html.Telerik().Slider() + .Name("Slider") + .ClientEvents(events => + events.OnLoad("onLoad").OnChange("onChange")) + %> + + + + + Sets a value indicating whether the slider can respond to user interaction. + + + Specifies the general layout of the slider. + + + The slider is oriented horizontally. + + + The slider is oriented vertically. + + + Specifies the location of tick marks in a component. + + + No tick marks appear in the component. + + + + Tick marks are located on the top of a horizontal component or on the + left of a vertical component. + + + + + Tick marks are located on the bottom of a horizontal component or on the + right side of a vertical component. + + + + Tick marks are located on both sides of the component. + + + + Sets the pane size. + + The desired size. Only sizes in pixels and percentages are allowed. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().Size("220px"); + }) + %> + + + + + + Sets the minimum pane size. + + The desired minimum size. Only sizes in pixels and percentages are allowed. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().MinSize("220px"); + }) + %> + + + + + + Sets the maximum pane size. + + The desired maximum size. Only sizes in pixels and percentages are allowed. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().MaxSize("220px"); + }) + %> + + + + + + Sets whether the pane shows a scrollbar when its content overflows. + + Whether the pane will be scrollable. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().Scrollable(false); + }) + %> + + + + + + Sets whether the pane can be resized by the user. + + Whether the pane will be resizable. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().Resizable(true); + }) + %> + + + + + + Sets whether the pane is initially collapsed. + + Whether the pane will be initially collapsed. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().Collapsed(true); + }) + %> + + + + + + Sets whether the pane can be collapsed by the user. + + Whether the pane can be collapsed by the user. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().Collapsible(true); + }) + %> + + + + + + Sets the HTML attributes applied to the outer HTML element rendered for the item + + The attributes. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add().HtmlAttributes(new { style = "background: red" }); + }) + %> + + + + + + Sets the HTML attributes applied to the outer HTML element rendered for the item + + The attributes. + + + + Sets the HTML content of the pane. + + The action which renders the HTML content. + + <% Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add() + .Content(() => { >% + <p>Content</p> + %<}); + }) + .Render(); + %> + + + + + Sets the HTML content of the pane. + + The Razor template for the HTML content. + + @(Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add() + .Content(@<p>Content</p>); + }) + .Render();) + + + + + Sets the HTML content of the pane. + + The HTML content. + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => + { + panes.Add() + .Content("<p>Content</p>"); + }) + %> + + + + + Sets the Url which will be requested to return the pane content. + + The route values of the Action method. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => { + panes.Add() + .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary()); + }) + %> + + + + + + Sets the Url, which will be requested to return the pane content. + + The action name. + The controller name. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => { + panes.Add() + .LoadContentFrom("AjaxView_OpenSource", "Splitter"); + }) + %> + + + + + + Sets the Url, which will be requested to return the content. + + The action name. + The controller name. + Route values. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => { + panes.Add() + .LoadContentFrom("AjaxView_OpenSource", "Splitter", new { id = 10 }); + }) + %> + + + + + + Sets the Url, which will be requested to return the pane content. + + The url. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => { + panes.Add() + .LoadContentFrom(Url.Action("AjaxView_OpenSource", "Splitter")); + }) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + The fluent interface that configures the . + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnResize client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnResize(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnResize client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnResize( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnResize client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnResize("onResize")) + %> + + + + + + Defines the inline handler of the OnExpand client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnExpand(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnExpand client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnExpand( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnExpand client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnExpand("onExpand")) + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnCollapse(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnCollapse( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnCollapse client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnCollapse("onCollapse")) + %> + + + + + + Defines the inline handler of the OnContentLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnContentLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnContentLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnContentLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnContentLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events.OnContentLoad("onContentLoad")) + %> + + + + + + Specifies the orientation in which the splitter panes will be ordered + + + + + Panes are oredered horizontally + + + + + Panes are oredered vertically + + + + + Sets the splitter orientation. + + The desired orientation. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Orientation(SplitterOrientation.Vertical) + %> + + + + + + Defines the panes in the splitter. + + The action that configures the panes. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .Panes(panes => { + panes.Add().LoadContentFrom("Navigation", "Shared"); + panes.Add().LoadContentFrom("Index", "Home"); + }) + %> + + + + + + Configures the client events for the splitter. + + The action that configures the client events. + + + <%= Html.Telerik().Splitter() + .Name("Splitter") + .ClientEvents(events => events + .OnLoad("onLoad") + ) + %> + + + + + + Defines properties for a content pane. + + + + + Defines whether one navigation item can have content loaded asynchroniously. + + + + + Url, which will be used as a destination for the Ajax request. + + + + + Specifies the size of the pane + + + + + Specifies the minimum size of the pane + + + + + Specifies the maximum size of the pane + + + + + Specifies whether the pane is initially collapsed + + + + + Specifies whether the pane can be collapsed by the user + + + + + Specifies whether the pane can be resized by the user + + + + + Specifies whether the pane shows a scrollbar when its content overflows + + + + + Specifies URL from which to load the pane content + + + + + Specifies HTML attributes for the pane + + + + + Specifies the pane contents + + + + + Gets the id. + + The id. + + + + Defines the fluent interface for configuring the component. + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Sets the initial value of the textbox. + + + + + Sets the step, used ti increment/decrement the value of the textbox. + + + + + Sets the minimal possible value allowed to the user. + + + + + Sets the maximal possible value allowed to the user. + + + + + Sets the group size of the number. + + + + + Sets the group separator of the number. + + + + + Sets the index of the negative pattern. + + + + + Sets the text which will be displayed if the textbox is empty. + + + + + Enables or disables the spin buttons. + + + + + + + Define the tooltip text of the up button. + + + + + Define the tooltip text of the down button. + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().NumericTextBox() + .Name("NumericTextBox") + .ClientEvents(events => + events.OnLoad("onLoad").OnChange("onChange") + ) + %> + + + + + + Sets the Input HTML attributes. + + The HTML attributes. + + + + Sets the Input HTML attributes. + + The HTML attributes. + + + + Enables or disables the textbox. + + + + + + + + Defines the fluent interface for configuring the component. + + + + + + Defines the number of the decimal digits. + + + + + Sets the decimal separator. + + + + + Sets the index of the positive pattern. + + + + + Sets the percent symbol. + + + + + Defines the fluent interface for configuring the component. + + + + + + Defines the number of the decimal digits. + + + + + Sets the decimal separator. + + + + + Sets the index of the positive pattern. + + + + + Sets the currency symbol. + + + + source is null. + + + ReSharper disable UnusedParameter.Local + + + + Executes the provided delegate for each item. + + + The instance. + The action to be applied. + + + index is out of range. + + + first is null. + second is null. + resultSelector is null. + + + + Initializes a new instance of the class. + + The source. + + + + Sorts the elements of a sequence using the specified sort descriptors. + + A sequence of values to sort. + The sort descriptors used for sorting. + + An whose elements are sorted according to a . + + + + + Pages through the elements of a sequence until the specified + using . + + A sequence of values to page. + Index of the page. + Size of the page. + + An whose elements are at the specified . + + + + + Projects each element of a sequence into a new form. + + + An whose elements are the result of invoking a + projection selector on each element of . + + A sequence of values to project. + A projection function to apply to each element. + + + + Groups the elements of a sequence according to a specified key selector function. + + An whose elements to group. + A function to extract the key for each element. + + An with items, + whose elements contains a sequence of objects and a key. + + + + + Sorts the elements of a sequence in ascending order according to a key. + + + An whose elements are sorted according to a key. + + + A sequence of values to order. + + + A function to extract a key from an element. + + + + + Sorts the elements of a sequence in descending order according to a key. + + + An whose elements are sorted in descending order according to a key. + + + A sequence of values to order. + + + A function to extract a key from an element. + + + + + Calls + or depending on the . + + The source. + The key selector. + The sort direction. + + An whose elements are sorted according to a key. + + + + + Groups the elements of a sequence according to a specified . + + An whose elements to group. + The group descriptors used for grouping. + + An with items, + whose elements contains a sequence of objects and a key. + + + + + Calculates the results of given aggregates functions on a sequence of elements. + + An whose elements will + be used for aggregate calculation. + The aggregate functions. + Collection of s calculated for each function. + + + + Filters a sequence of values based on a predicate. + + + An that contains elements from the input sequence + that satisfy the condition specified by . + + An to filter. + A function to test each element for a condition. + + + + Filters a sequence of values based on a collection of . + + The source. + The filter descriptors. + + An that contains elements from the input sequence + that satisfy the conditions specified by each filter descriptor in . + + + + + Returns a specified number of contiguous elements from the start of a sequence. + + + An that contains the specified number + of elements from the start of . + + The sequence to return elements from. + The number of elements to return. + is null. + + + + Bypasses a specified number of elements in a sequence + and then returns the remaining elements. + + + An that contains elements that occur + after the specified index in the input sequence. + + + An to return elements from. + + + The number of elements to skip before returning the remaining elements. + + is null. + + + Returns the number of elements in a sequence. + The number of elements in the input sequence. + + The that contains the elements to be counted. + + is null. + + + Returns the element at a specified index in a sequence. + The element at the specified position in . + An to return an element from. + The zero-based index of the element to retrieve. + is null. + is less than zero. + + + + Creates a from an where T is . + + + A that contains elements from the input sequence. + + + The to create a from. + + + is null. + + + + + Represents an attribute that is used to populate in view data. + + + + + Initializes a new instance of the class. + + The site maps. + + + + Initializes a new instance of the class. + + + + + Called before an action result executes. + + The filter context. + + + + Called after an action result executes. + + The filter context. + + + + Gets or sets the default view data key. + + The default view data key. + + + + Gets or sets the name of the site map. + + The name of the site map. + + + + Gets or sets the view data key. + + The view data key. + + + + Gets or sets the site maps. + + The site maps. + + + + Defines a base class that represents site map. + + + + + Initializes a new instance of the class. + + + + + Performs an implicit conversion from to . + + The site map. + The result of the conversion. + + + + Returns a new builder. + + + + + + Resets this instance. + + + + + Gets or sets the default cache duration in minutes. + + The default cache duration in minutes. + + + + Gets or sets a value indicating whether [default compress]. + + true if [default compress]; otherwise, false. + + + + Gets or sets a value indicating whether [default generate search engine map]. + + + true if [default generate search engine map]; otherwise, false. + + + + + Gets or sets the root node. + + The root node. + + + + Gets or sets the cache duration in minutes. + + The cache duration in minutes. + + + + Gets or sets a value indicating whether this is compress. + + true if compress; otherwise, false. + + + + Gets or sets a value indicating whether [generate search engine map]. + + + true if [generate search engine map]; otherwise, false. + + + + + The builder to fluently configuring . + + + + + Initializes a new instance of the class. + + The site map. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal sitemap. + + + + + + Caches the duration in minutes. + + The value. + + + + + Compresses the specified value. + + if set to true [value]. + + + + + Generates the search engine map. + + if set to true [value]. + + + + + Gets the root node. + + The root node. + + + + Sitemap change frequency + + + + + Automatic + + + + + Daily + + + + + Always + + + + + Hourly + + + + + Weekly + + + + + Monthly + + + + + Yearly + + + + + Never + + + + + Defines a class that is used to store against a key. + + + + + Registers the specified name. + + The type of the site map. + The name. + The configure. + + + + + Adds an item to the . + + The object to add to the . + + The is read-only. + + + + + Adds an element with the provided key and value to the . + + The object to use as the key of the element to add. + The object to use as the value of the element to add. + + is null. + + + An element with the same key already exists in the . + + + The is read-only. + + + + + Removes all items from the . + + + The is read-only. + + + + + Determines whether the contains a specific value. + + The object to locate in the . + + true if is found in the ; otherwise, false. + + + + + Determines whether the contains an element with the specified key. + + The key to locate in the . + + true if the contains an element with the key; otherwise, false. + + + is null. + + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in at which copying begins. + + is null. + + + is less than 0. + + + is multidimensional. + -or- + is equal to or greater than the length of . + -or- + The number of elements in the source is greater than the available space from to the end of the destination . + -or- + Type cannot be cast automatically to the type of the destination + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + + + + Removes the first occurrence of a specific object from the . + + The object to remove from the . + + true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + + + The is read-only. + + + + + Removes the element with the specified key from the . + + The key of the element to remove. + + true if the element is successfully removed; otherwise, false. This method also returns false if was not found in the original . + + + is null. + + + The is read-only. + + + + + Gets the value associated with the specified key. + + The key whose value to get. + When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the parameter. This parameter is passed uninitialized. + + true if the object that implements contains an element with the specified key; otherwise, false. + + + is null. + + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + + + + Gets or sets the default site map factory. + + The default site map factory. + + + + Gets or sets the default site map. + + The default site map. + + + + Gets the number of elements contained in the . + + + + The number of elements contained in the . + + + + + Gets a value indicating whether the is read-only. + + + true if the is read-only; otherwise, false. + + + + + Gets an containing the keys of the . + + + + An containing the keys of the object that implements . + + + + + Gets an containing the values in the . + + + + An containing the values in the object that implements . + + + + + Gets or sets the with the specified key. + + + + + + Defines a class that is used to generate searach engine sitemap xml. + + + + + Provides a common base set of functionality for IHttpHandler implementations. + + + + + Enables processing of HTTP Web requests by a custom HttpHandler that implements the interface. + + An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests. + + + + Processes the request. + + The context. + + + + Gets a value indicating whether another request can use the instance. + + + true if the instance is reusable; otherwise, false. + + + + Initializes a new instance of the class. + + The site maps. + The HTTP response compressor. + The HTTP response cacher. + The URL generator. + + + + Initializes a new instance of the class. + + + + + Processes the request. + + The context. + + + + Gets or sets the default path. + + The default path. + + + + Defines a class that is used to store global sitemaps. + + + + + Gets the site maps. + + The site maps. + + + + Defines a class that is used to store single url. + + + + + Serves as the base class for classes that provides linked object information. + + + + + Gets or sets the T object that is the parent of the current node. + + The parent. + + + + Gets the previous T object on the same level as the current one, relative to the T.ParentNode object (if one exists). + + The previous sibling. + + + + Gets the next T node on the same hierarchical level as the current one, relative to the T.ParentNode property (if one exists). + + The next sibling. + + + + Initializes a new instance of the class. + + + + + Performs an implicit conversion from to . + + The node. + The result of the conversion. + + + + Gets or sets the title. + + The title. + + + + Gets or sets a value indicating whether this is visible. + + true if visible; otherwise, false. + + + + Gets or sets the last modified at. + + The last modified at. + + + + Gets or sets the name of the route. + + The name of the route. + + + + Gets or sets the name of the controller. + + The name of the controller. + + + + Gets or sets the name of the action. + + The name of the action. + + + + Gets or sets the route values. + + The route values. + + + + Gets or sets the URL. + + The URL. + + + + Gets or sets the change frequency. + + The change frequency. + + + + Gets or sets the update priority. + + The update priority. + + + + Gets or sets a value indicating whether [include in search engine index]. + + + true if [include in search engine index]; otherwise, false. + + + + + Gets or sets the attributes. + + The attributes. + + + + Gets or sets the child nodes. + + The child nodes. + + + + Builder class for fluently configuring . + + + + + Initializes a new instance of the class. + + The site map node. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal node. + + + + + + Sets the title. + + The value. + + + + + Sets the visibility. + + if set to true [value]. + + + + + Sets the Lasts the modified date.. + + The value. + + + + + Sets the route. + + Name of the route. + The route values. + + + + + Sets the route. + + Name of the route. + The route values. + + + + + Sets the route. + + Name of the route. + + + + + Sets the action to which the date should navigate + + The route values of the Action method. + + + + Sets the action, controller and route values. + + Name of the action. + Name of the controller. + The route values. + + + + + Sets the action, controller and route values. + + Name of the action. + Name of the controller. + The route values. + + + + + Sets the action and controller. + + Name of the action. + Name of the controller. + + + + + Expression based controllerAction. + + The type of the controller. + The action. + + + + + Sets the url. + + The value. + + + + + Sets the change frequency. + + The value. + + + + + Sets the update priority. + + The value. + + + + + Marks an item that it would be included in the search engine index. + + if set to true [value]. + + + + + Sets the attributes + + The value. + + + + + Sets the attributes + + The value. + + + + + Executes the provided delegate to configure the child node. + + The add actions. + + + + + Defines a factory that is used to create . + + + + + Initializes a new instance of the class. + + The parent. + + + + Adds this instance. + + + + + + Sitemap update priority. + + + + + Automatic + + + + + Low + + + + + Normal + + + + + High + + + + + Critical + + + + + Xml file based sitemap. + + + + + Initializes a new instance of the class. + + + + + Loads from the default path. + + + + + Loads from the specified path. + + The relative virtual path. + + + + Gets or sets the default path. + + The default path. + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The component. + + + + Sets selected date. + + DateTime object represents the selected date. + + + + Sets selected date. + + Date passed as string. + + + + Sets the smallest possible date, which user can choose. + + + + + Sets the smallest possible date, which user can choose. + + + + + Sets the biggest possible date, which user can choose. + + + + + Sets the smallest possible date, which user can choose. + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => + events.OnLoad("onLoad") + ) + %> + + + + + + Configures the selection settings of the calendar. + + SelectAction settings, which includes Action name and IEnumerable of DateTime objects. + + + + + Defines fluent interface for configuring calendar client events. + + + + + Initializes a new instance of the class. + + Client events of the calendar. + The context of the View. + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the OnDateSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Calendar() + .Name("Calendar") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Contains constants for CSS class names, used across all UI extensions + + + + + Next navigation link + + + + + Previous navigavtion link + + + + + Previous navigavtion link + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The selection settings. + The view context. + + + + Defines list of dates. This list determines which dates to be rendered with action link. + + List of objects + + + + Sets the action to which the date should navigate + + The route values of the Action method. + + + + Sets the action to which the date should navigate + + Name of the action. + The route values. + + + + Sets the action to which the item should navigate + + Name of the action. + Name of the controller. + The route values. + + + + Defines the fluent interface for configuring delete action command. + + + + + + Initializes a new instance of the class. + + The command. + + + + Defines the fluent interface for configuring the edit action command. + + + + + + Initializes a new instance of the class. + + The command. + + + + Defines the fluent interface for configuring the data binding. + + + + + Initializes a new instance of the class. + + The configuration. + + + + Use it to configure Server binding. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Server().Select("FirstLook", "Grid"}); + }) + .Pagealbe() + .Sortable(); + %> + + + + + + Use it to configure Ajax binding. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("_FirstLook", "Grid").Enabled((bool)ViewData["ajax"]); + }) + .Pagealbe() + .Sortable(); + %> + + + + + + Use it to configure web service binding. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.WebService().Select("~/Models/Orders.asmx/GetOrders") + }) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + %> + + + + + + Defines the fluent interface for configuring the data key. + + The type of the model + + + + Initializes a new instance of the class. + + The dataKey. + + + + Sets the RouteKey. + + The value. + + + + + Gets the HTML attributes of the form rendered during editing + + The HTML attributes. + + + + Creates data key for the . + + The type of the data item + + + + Initializes a new instance of the class. + + The grid. + + + + Defines a data key. + + + + + + + + Gets or sets the operation mode of the grid. By default the grid will make a request to the + server when it needs data for paging, sorting, filtering or grouping. If you set the + operation mode to GridOperationMode.Client it will make only one request for all data. Any other + paging, sorting, filtering or grouping will be performed client-side. + + + + + Defines which objects can have child items. + + + + + + Child items collection. + + + + + Defines the fluent interface for configuring the component. + + + + + + Defines the number of the decimal digits. + + + + + Sets the decimal separator. + + + + + Defines the fluent interface for configuring the . + + + + + Defines the inline handler of the OnChange client-side event + + The action defining the inline handler. + + + <% Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnChange(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChange client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnChange( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChange client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnChange("onChange")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Sets the value of the timepicker input + + + + + Sets the value of the timepicker input + + + + + Sets the value of the timepicker input + + + + + Sets the minimum time, which can be selected in timepicker + + + + + Sets the minimum time, which can be selected in timepicker + + + + + Sets the maximum time, which can be selected in timepicker + + + + + Sets the maximum time, which can be selected in timepicker + + + + + Sets the interval between hours. + + + + + Sets whether timepicker to be rendered with button, which shows timeview on click. + + + + + Sets the title of the timepicker button. + + + + + Defines the fluent interface for configuring TreeView drag&drop. + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables / disables drag&drop functionality. + + Whether to enable or to disable the drag&drop. + + + + Allows elements to be dropped on arbitrary HTML elements + + jQuery selector that specifies the elements that qualify as drop targets. + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables binding. + + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home").Enabled((bool)ViewData["ajax"]); + }) + %> + + + + The Enabled method is useful when you need to enable binding based on certain conditions. + + + + + Sets the action, controller and route values + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select(MVC.Home.Index(1).GetRouteValueDictionary()); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home", new { {"id", 1} }); + }) + %> + + + + + + Sets the action, controller and route values for the select operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Index", "Home"); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + }) + %> + + + + + + Sets the route and values for the select operation + + Name of the route. + The route values. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default", new {id=1}); + }) + %> + + + + + + Sets the route name for the select operation + + Name of the route. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => + { + dataBinding.Ajax().Select("Default"); + }) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Defines the items in the TreeView + + The add action. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => + .OnDataBinding("onDataBinding") + .OnItemDataBound("onItemDataBound") + ) + %> + + + + + + Binds the TreeView to a sitemap + + The view data key. + The action to configure the item. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .BindTo("examples", (item, siteMapNode) => + { + }) + %> + + + + + + Binds the TreeView to a sitemap. + + The view data key. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .BindTo("examples") + %> + + + + + + Binds the TreeView to a list of items. + Use if a hierarchy of items is being sent from the controller; to bind the TreeView declaratively, use the Items() method. + + The list of items + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .BindTo(model) + %> + + + + + + Binds the TreeView to a list of objects. The TreeView will be "flat" which means a TreeView item will be created for + every item in the data source. + + The type of the data item + The data source. + The action executed for every data bound item. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .BindTo(new []{"First", "Second"}, (item, value) + { + item.Text = value; + }) + %> + + + + + + Binds the TreeView to a list of objects. The TreeView will create a hierarchy of items using the specified mappings. + + The type of the data item + The data source. + The action which will configure the mappings + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .BindTo(Model, mapping => mapping + .For<Customer>(binding => binding + .Children(c => c.Orders) // The "child" items will be bound to the the "Orders" property + .ItemDataBound((item, c) => item.Text = c.ContactName) // Map "Customer" properties to TreeViewItem properties + ) + .For<Order<(binding => binding + .Children(o => null) // "Orders" do not have child objects so return "null" + .ItemDataBound((item, o) => item.Text = o.OrderID.ToString()) // Map "Order" properties to TreeViewItem properties + ) + ) + %> + + + + + + Use it to configure Data binding. + + Action that configures the data binding options. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "TreeView") + ); + %> + + + + + + Callback for each item. + + Action, which will be executed for each item. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ItemAction(item => + { + item + .Text(...) + .HtmlAttributes(...); + }) + %> + + + + + + Select item depending on the current URL. + + If true the item will be highlighted. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .HighlightPath(true) + %> + + + + + + Configures the effects of the TreeView. + + The action which configures the effects. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Effects(fx => + { + fx.Slide() + .Opacity() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Expand all the items. + + If true all the items will be expanded. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ExpandAll(true) + %> + + + + + + ShowLines indicates if lines connecting child nodes to parent nodes are displayed. + + If true lines connecting child nodes to parent nodes are displayed. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ShowLines(true) + %> + + + + + + ShowCheckBox indicates if checkbox displayed before node. + + If true checkbox will be displayed for every node. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ShowCheckBox(true) + %> + + + + + + Enables drag & drop between treeview nodes. + + If true, drag & drop is enabled. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + .DragAndDrop(true) + %> + + + + + + Enables drag & drop between treeview nodes. + + Action that configures the drag and drop options. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + .DragAndDrop(settings => + { + + }) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnExpand client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnExpand(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnExpand client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnExpand( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnExpand client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnExpand("onExpand")) + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnCollapse(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnCollapse( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnCollapse client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnCollapse("onCollapse")) + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnSelect(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnSelect( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnSelect("onSelect")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Defines the inline handler of the OnNodeDragStart client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragStart(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnNodeDragStart client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragStart( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnNodeDragStart client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragStart("onNodeDragStrat")) + %> + + + + + + Defines the inline handler of the OnNodeDrop client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDrop(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnNodeDrop client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDrop( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnNodeDrop client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDrop("OnNodeDrop")) + %> + + + + + + Defines the inline handler of the OnNodeDropped client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDropped(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnNodeDropped client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDropped( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnNodeDropped client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDropped("OnNodeDropped")) + %> + + + + + + Defines the inline handler of the OnNodeDragCancelled client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragCancelled(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnNodeDragCancelled client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragCancelled( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnNodeDragCancelled client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragCancelled("OnNodeDragCancelled")) + %> + + + + + + Defines the inline handler of the OnNodeDragging client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragging(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnNodeDragging client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragging( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnNodeDragging client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnNodeDragging("OnNodeDragging")) + %> + + + + + + Defines the inline handler of the OnDataBinding client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBinding(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDataBinding client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBinding( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBinding client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBinding("OnDataBinding")) + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBound(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDataBound client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBound( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBound client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnDataBound("OnDataBound")) + %> + + + + + + Defines the inline handler of the OnChecked client-side event. Requires ShowCheckBox to be true. + + The action defining the inline handler. + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnChecked(() => + { + %> + function(e) { + // event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnChecked client-side event. Requires ShowCheckBox to be true. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnChecked( + @<text> + function(e) { + // event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnChecked client-side event. Requires ShowCheckBox to be true. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .ClientEvents(events => events.OnChecked("onChecked")) + %> + + + + + + Defines the fluent interface for configuring the data binding. + + + + + Initializes a new instance of the class. + + The configuration. + + + + Use it to configure Ajax binding. + + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => dataBinding + .Ajax().Select("_AjaxLoading", "TreeView") + ) + %> + + + + + + Use it to configure web service binding. + + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => dataBinding + .WebService().Select("~/Models/Employees.asmx/GetEmployees") + ) + %> + + + + + + Defines the fluent interface for configuring child TreeView items. + + + + + Defines the fluent interface for configuring navigation items + + The type of the item. + The type of the builder. + + + + Initializes a new instance of the class. + + The item. + + + + Returns the inner navigation item + + + + + + Sets the HTML attributes applied to the outer HTML element rendered for the item + + The attributes. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Attributes(new {@class="first-item"})) + %> + + + + + + Sets the HTML attributes applied to the outer HTML element rendered for the item + + The attributes. + + + + Sets the text displayed by the item. + + The value. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item")) + %> + + + + + + Makes the item visible or not. Invisible items are not rendered in the output HTML. + + + Sets the text displayed by the item. + + The value. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Visible((bool)ViewData["visible"]) + %> + + + + + + Enables or disables the item. Disabled item cannot be clicked, expanded or open (depending on the item type - menu, tabstrip, panelbar). + + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Enabled((bool)ViewData["enabled"]) + %> + + + + + + Selects or unselects the item. By default items are not selected. + + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Selected(true)) + %> + + + + + + Sets the route to which the item should navigate. + + Name of the route. + The route values. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Route("Default", new RouteValueDictionary{{"id", 1}})) + %> + + + + + + Sets the route to which the item should navigate. + + Name of the route. + The route values. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Route("Default", new {id, 1})) + %> + + + + + + Sets the route to which the item should navigate. + + Name of the route. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").Route("Default")) + %> + + + + + + Sets the action to which the item should navigate + + The route values of the Action method. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("Index").Action(MVC.Home.Index(3).GetRouteValueDictionary())) + %> + + + + + + Sets the action to which the item should navigate + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("Index").Action("Index", "Home", new RouteValueDictionary{{"id", 1}})) + %> + + + + + + Sets the action to which the item should navigate + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("Index").Action("Index", "Home", new {id, 1})) + %> + + + + + + Sets the action to which the item should navigate + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("Index").Action("Index", "Home")) + %> + + + + + + Sets the URL to which the item should navigate + + The value. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("www.example.com").Url("http://www.example.com")) + %> + + + + + + Sets the URL of the image that should be displayed by the item. + + The value. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("First Item").ImageUrl("~/Content/first.png")) + %> + + + + + + Sets the HTML attributes for the item image. + + The attributes. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add().Text("First Item") + .ImageUrl("~/Content/first.png") + .ImageHtmlAttributes(new {@class="first-item-image"})) + %> + + + + + + Sets the HTML attributes for the item image. + + The attributes. + + + + Sets the sprite CSS class names. + + The CSS classes. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add().Text("First Item") + .SpriteCssClasses("icon", "first-item") + %> + + + + + + Sets the HTML content which the item should display. + + The action which renders the content. + + <% Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add() + .Text("First Item") + .Content(() => + { + %> + <strong> First Item Content</strong> + <% + });) + .Render(); + %> + + + + + Sets the HTML content which the item should display. + + The content wrapped in a regular HTML tag or text tag (Razor syntax). + + @(Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add() + .Text("First Item") + .Content( + @<text> + Some text + <strong> First Item Content</strong> + </text> + ); + ) + ) + + + + + Sets the HTML content which the item should display as a string. + + The action which renders the content. + + <% Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add() + .Text("First Item") + .Content("<strong> First Item Content</strong>"); + ) + .Render(); + %> + + + + + Sets the HTML attributes of the content element of the item. + + The attributes. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add().Text("First Item") + .Content(() => { %> <strong>First Item Content</strong> <% }) + .ContentHtmlAttributes(new {@class="first-item-content"}) + %> + + + + + + Sets the HTML attributes of the content element of the item. + + The attributes. + + + + Makes the item navigate to the specified controllerAction method. + + The type of the controller. + The action. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items + .Add().Text("First Item") + .Action<HomeController>(controller => controller.Index())) + + %> + + + + + + Sets whether the Text property should be encoded when the item is rendered. + + Whether the property should be encoded. Default: true. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => items.Add().Text("<strong>First Item</strong>").Encoded(false)) + %> + + + + + + Initializes a new instance of the class. + + The item. + + + + Configures the child items of a . + + The add action. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }); + }) + %> + + + + + + Sets the value for the item. + + The value. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => items.Add().Value("1")) + %> + + + + + + Define when the item will be expanded on intial render. + + If true the item will be expanded. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }) + .Expanded(true); + }) + %> + + + + + + Define when the item will be checked on intial render. + + If true the item will be checked. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }) + .Checked(true); + }) + %> + + + + + + Enables/disables the rendering of a checkbox for this item. + + If false, no checkbox will be rendered. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }) + .Checkable(false); + }) + %> + + + + + + Sets the expand mode of the treeview item. + + If true then item will be load on demand from client side. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }) + .LoadOnDemand(true); + }) + %> + + + + + + Creates items for the . + + + + + Initializes a new instance of the class. + + The settings. + + + + Defines a item. + + + + + + Defines the fluent interface for configuring the treeview webservice. + + + + + Initializes a new instance of the class. + + The settings. + + + + Specify the web service url for loading data + + The web service url + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => dataBinding + .WebService().Select("~/Models/Employees.asmx/GetEmployees") + ) + %> + + + + + + Enables / disables web service functionality. + + Whether to enable or to disable the web service. + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .DataBinding(dataBinding => dataBinding + .Ajax().Enabled(true).Select("_AjaxLoading", "TreeView") + ) + %> + + + + The Enabled method is useful when you need to enable ajax based on certain conditions. + + + + + Telerik Treeview for ASP.NET MVC is a view component for presenting hierarchical data. + + + + + Initializes a new instance of the class. + + The view context. + The client side object writer factory. + The URL generator. + The navigation item authorization. + The builder factory. + + + + Gets the client events of the treeview. + + The client events. + + + + Gets the items of the treeview. + + + + + Gets or sets the item action. + + + + + Gets or sets the effects. + + + + + Gets or sets a value indicating whether all the item is expanded. + + true if expand all is enabled; otherwise, false. The default value is false + + + + Gets or sets a value indicating whether all the item is expanded. + + true if expand all is enabled; otherwise, false. The default value is false + + + + Gets or sets a value indicating whether all the item is expanded. + + true if expand all is enabled; otherwise, false. The default value is false + + + + Gets the ajax configuration. + + + + + Gets the web service configuration + + + + + + Defines whether one navigation item can have content output immediately + + + + + The HtmlAttributes which will be added to the wrapper of the content. + + + + + The action which will output the content. + + + + + Gets the id. + + The id. + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Sets whether datepicker to be rendered with button, which shows calendar on click. + + + + + Sets the title of the datepicker button. + + + + + Sets the value of the datepicker input + + + + + Sets the value of the datepicker input + + + + + Sets the minimal date, which can be selected in DatePicker. + + + + + Sets the maximal date, which can be selected in DatePicker. + + + + + Sets the Url, which will be requested to return the content. + + The route values of the Action method. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(parent => { + + parent.Add() + .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary()); + }) + %> + + + + + + Sets the Url, which will be requested to return the content. + + The action name. + The controller name. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(parent => { + + parent.Add() + .Text("Completely Open Source") + .LoadContentFrom("AjaxView_OpenSource", "PanelBar"); + }) + %> + + + + + + Sets the Url, which will be requested to return the content. + + The action name. + The controller name. + Route values. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(parent => { + + parent.Add() + .Text("Completely Open Source") + .LoadContentFrom("AjaxView_OpenSource", "PanelBar", new { id = 10}); + }) + %> + + + + + + Sets the Url, which will be requested to return the content. + + The url. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(parent => { + + parent.Add() + .Text("Completely Open Source") + .LoadContentFrom(Url.Action("AjaxView_OpenSource", "PanelBar")); + }) + %> + + + + + + Defines the fluent interface for configuring the ajax settings + + + + + Defines the fluent interface for building + + + + + Initializes a new instance of the class. + + The settings. + + + + Sets the route and values + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Route("Default", new {id=1})) + %> + + + + + + Sets the route and values + + Name of the route. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Route("Default", new RouteValueDictionary{{"id",1}})) + %> + + + + + + Sets the route name + + Name of the route. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Route("Default")) + %> + + + + + + Sets the action, controller and route values + + The route values of the Action method. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Action(MVC.Home.Index(1).GetRouteValueDictionary())) + %> + + + + + + Sets the action, controller and route values + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Action("Index", "Home", new {id = 1})) + %> + + + + + + Sets the action, controller and route values + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Action("Index", "Home", new RouteValueDictionary{ {"id", 1} })) + %> + + + + + + Sets the action, controller and route values + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Action("Index", "Home")) + %> + + + + + + Gets or sets the settings. + + The settings. + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables Ajax binding. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Ajax(ajax => ajax.Enabled((bool)ViewData["enableAjax"])) + %> + + + + The Enabled method is useful when you need to enable ajax based on certain conditions. + + + + + Defines the fluent interface for configuring bound columns + + The type of the data item + + + + Initializes a new instance of the class. + + The column. + + + + Gets or sets the format for displaying the data. + + The value. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).Format("{0:dd/MM/yyyy}")) + %> + + + + + + Provides additional view data in the editor template for that column (if any). + + + The additional view data will be provided if the editing mode is set to in-line or in-cell. Otherwise + use + + An anonymous object which contains the additional data + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => { + columns.Bound(o => o.Customer).EditorViewData(new { customers = Model.Customers }); + }) + %> + + + + + + Makes the column read-only or not. By default bound columns are not read-only. + + + If a column is read-only it cannot be modified during editing. + + true if the column should be read-only;otherwise false + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).ReadOnly(true)) + %> + + + + + + Makes the column read-only. + + + If a column is read-only it cannot be modified during editing. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).ReadOnly()) + %> + + + + + + Specify which editor template should be used for the column + + name of the editor template + + + + Enables or disables sorting the column. All bound columns are sortable by default. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).Sortable(false)) + %> + + + + + + Enables or disables grouping by that column. All bound columns are groupable by default. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).Groupable(false)) + %> + + + + + + Enables or disables filtering the column. All bound columns are filterable by default. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).Filterable(false)) + %> + + + + + + Enables or disables HTML encoding the data of the column. All bound columns are encoded by default. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns.Bound(o => o.OrderDate).Encoded(false)) + %> + + + + + + Sets the template for the column. + + The action defining the template. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .Columns(columns => columns + .Add(c => c.CustomerID) + .Template(() => + { + %> + >img + alt="<%= c.CustomerID %>" + src="<%= Url.Content("~/Content/Grid/Customers/" + c.CustomerID + ".jpg") %>" + /> + <% + }).Title("Picture");) + .Render(); + %> + + + + + + Sets the footer template for the column. + + The action defining the template. + + + + Sets the footer template for the column. + + The action defining the template. + + + + Sets the group footer template for the column. + + The action defining the template. + + + + Sets the group footer template for the column. + + The action defining the template. + + + + Sets the group footer template for the column. + + The action defining the template. + + + + Sets the group footer template for the column. + + The action defining the template. + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The events. + + + + Defines the inline handler of the OnLoad client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //Load handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //Load handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnSubmitChanges client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSubmitChanges(() => + { + %> + function(e) { + //handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSubmitChanges client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSubmitChanges( + @<text> + function(e) { + //handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSubmitChanges client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSubmitChanges("onSubmitChanges")) + %> + + + + + + Defines the inline handler of the OnEdit client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnEdit(() => + { + %> + function(e) { + //edit handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnEdit client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnEdit( + @<text> + function(e) { + //edit handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnEdit client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnEdit("onEdit")) + %> + + + + + + Defines the inline handler of the OnSave client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave(() => + { + %> + function(e) { + //edit handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSave client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave( + @<text> + function(e) { + //edit handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSave client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave("onSave")) + %> + + + + + + Defines the inline handler of the OnDetailViewExpand client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewExpand(() => + { + %> + function(e) { + //edit handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDetailViewExpand client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewExpand( + @<text> + function(e) { + //edit handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDetailViewExpand client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewExpand("onDetailViewExpand")) + %> + + + + + + Defines the inline handler of the OnDetailViewCollapse client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewCollapse(() => + { + %> + function(e) { + //edit handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnDetailViewCollapse client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewCollapse( + @<text> + function(e) { + //edit handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDetailViewCollapse client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDetailViewCollapse("onDetailViewCollapse")) + %> + + + + + + Defines the inline handler of the OnSave client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave(() => + { + %> + function(e) { + //edit handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSave client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave( + @<text> + function(e) { + //edit handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDelete client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnSave("onDelete")) + %> + + + + + + Defines the inline handler of the OnColumnResize client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnResize(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnColumnResize client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnResize( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnColumnResize client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnResize("onColumnResize")) + %> + + + + + + Defines the inline handler of the OnColumnReorder client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnReorder(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnColumnReorder client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnReorder( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnColumnResize client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnColumnReorder("onColumnReorder")) + %> + + + + + + Defines the inline handler of the OnRowSelect client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowSelect(() => + { + %> + function(e) { + //Error handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnRowSelect client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowSelect( + @<text> + function(e) { + //Error handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnRowSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowSelect("onRowSelect")) + %> + + + + + + Defines the inline handler of the OnError client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //Error handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //Error handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Defines the inline error handler of the OnDataBound client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBound(() => + { + %> + function(e) { + //data bound handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline error handler of the OnDataBound client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBound( + @<text> + function(e) { + //data bound handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBound client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBound("onDataBound")) + %> + + + + + + Defines the inline error handler of the OnDataBinding client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBinding(() => + { + %> + function(e) { + //data binding handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline error handler of the OnDataBinding client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBinding( + @<text> + function(e) { + //data binding handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnDataBinding client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnDataBinding("onDataBinding")) + %> + + + + + + Defines the inline error handler of the OnRowDataBound client-side event. + + The action defining the inline handler. + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowDataBound(() => + { + %> + function(e) { + var row = e.row; + var dataItem = e.dataItem; + } + <% + })) + .Render(); + %> + + + + + + Defines the inline error handler of the OnRowDataBound client-side event. + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowDataBound( + @<text> + function(e) { + var row = e.row; + var dataItem = e.dataItem; + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnRowDataBound client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .ClientEvents(events => events.OnRowDataBound("onRowDataBound")) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The column. + + + + Creates command for the . + + The type of the data item + + + + Initializes a new instance of the class. + + The column. + + + + Defines a edit command. + + + + + + Defines a delete command. + + + + + + Defines a select command. + + + + + + Defines a custom command. + + + + + + Defines the fluent interface for configuring . + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables filtering + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Filterable(filtering => filtering.Enabled((bool)ViewData["enableFiltering"])) + %> + + + + The Enabled method is useful when you need to enable filtering based on certain conditions. + + + + + Defines the fluent interface for configuring + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables scrolling. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Scrolling(scrolling => scrolling.Enabled((bool)ViewData["enableScrolling"])) + %> + + + + The Enabled method is useful when you need to enable scrolling based on certain conditions. + + + + + Sets the height of the scrollable area in pixels. + + The height in pixels. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Scrolling(scrolling => scrolling.Height(400)) + %> + + + + + + Sets the height of the scrollable. + + The height in pixels. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Scrolling(scrolling => scrolling.Height("20em")) + %> + + + + + + Defines the fluent interface for configuring the + + + + + Initializes a new instance of the class. + + The settings. + + + The pager will display only a status message + + + The pager will display first/previous/next/last links + + + The pager will display page numbers as link buttons. + + + The pager will display an input field and the total number of pages. + + + The pager will display a dropdown and the total number of pages. + + + (first) (previous) (page numbers) (next) (last) + + + (first) (previous) (page input field) (next) (last) + + + (first) (previous) (page size drop down) (next) (last) + + + + Defines the fluent interface for configuring + + + + + Enables or disables selection. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Selectable(selection => selection.Enabled((bool)ViewData["enableSelection"])) + %> + + + + The Enabled method is useful when you need to enable scrolling based on certain conditions. + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The settings. + + + + Enables or disables sorting. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Sorting(sorting => sorting.Enabled((bool)ViewData["enableSorting"])) + %> + + + + The Enabled method is useful when you need to enable sorting based on certain conditions. + + + + + Sets the sort mode of the grid. + + The value. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Sorting(sorting => sorting.SortMode(GridSortMode.MultipleColumns)) + %> + + + + + + Configures the initial sort order. + + The configurator. + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The settings. + + + + Sets the url of the web service which the will request for data. + + The value. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .WebService(webService => webService.Url("~/Models/Orders.asmx/GetOrders"))) + %> + + + + + + Enables or disables web service binding. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .WebService(webService => webService.Enabled((bool)ViewData["enableWebServiceBinding"])) + %> + + + + The Enabled method is useful when you need to enable web service binding based on certain conditions. + + + + + Specifies the animation duration of item. + + + + + Fast animation, duration is set to 200. + + + + + Normal animation, duration is set to 400. + + + + + Slow animation, duration is set to 600. + + + + + Helper class to convert jQuery Animation Duration. + + + + + Converts specified duration in jQuery equivalent value. + + The duration. + + + + + Defines the basic building block of creating client side object. + + + + + Starts writing this instance. + + + + + + Appends the specified key value pair to the end of this instance. + + The key value pair. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and nullable value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + The default value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + if set to true [value]. + + + + + Appends the specified name and value to the end of this instance. + + The name. + if set to true [value]. + if set to true [default value]. + + + + + Appends the specified name and only the date of the passed . + + The name. + The value. + + + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The action. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The action. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The HtmlTemplate. + + + + + Appends the object. + + The name. + The value. + + + + + Appends the specified name and Action or String specified in the ClientEvent object. + + The name. + Client event of the component. + + + + + Appends the specified name and value to the end of this instance. + + The type of the enum. + The name. + The value. + The default value. + + + + + Completes this instance. + + + + + Defines the factory to create . + + + + + Creates a writer. + + The id. + The type. + The text writer. + + + + + Defines the sort modes supported by + + + + + The user can sort only by one column at the same time. + + + + + The user can sort by more than one column at the same time. + + + + + + Initializes a new instance of the class. + + The view context. + The client side object writer factory. + The URL generator. + The builder factory. + + + + Gets the selection configuration + + + + + Gets the template which the grid will use to render a row + + + + + Gets the client events of the grid. + + The client events. + + + + Gets the filtering configuration. + + + + + Gets the web service configuration + + + + + Gets the server binding configuration. + + + + + Gets the scrolling configuration. + + + + + Gets the keyboard navigation configuration. + + + + + Gets the column context menu configuration. + + + + + Gets the ajax configuration. + + + + + Gets or sets a value indicating whether custom binding is enabled. + + true if custom binding is enabled; otherwise, false. The default value is false + + + + Gets the paging configuration. + + + + + Gets the columns of the grid. + + + + + Gets or sets the data source. + + The data source. + + + + Gets the page size of the grid. + + + + + Gets the sorting configuration. + + The sorting. + + + + Gets or sets a value indicating whether to add the property of the grid as a prefix in url parameters. + + true if prefixing is enabled; otherwise, false. The default value is true + + + + Gets or sets the action executed when rendering a row. + + + + + Gets or sets the action executed when rendering a cell. + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Sets the row template of the grid + + The template + + + <%= Html.Telerik().Grid(Model) + .RowTemplate(o => + { + %> + <%= o.Name %> + <%= o.Age %> + <% + }) + %> + + + + + + Sets the row template of the grid + + The template + + + <%= Html.Telerik().Grid(Model) + .RowTemplate(o => + { + %> + <%= o.Name %> + <%= o.Age %> + <% + }) + %> + + + + + + Sets the row template of the grid using Razor syntax + + The template + + + <%= Html.Telerik().Grid(Model) + .RowTemplate(@<text> + @item.Name + @item.Age + </text>) + %> + + + + + + Configures the grid resizing settings + + Resizing settings configurator method + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Resizable(resizing => resizing.Columns(true)) + %> + + + + + + Configures the grid reordering settings + + Resizing settings configurator method + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Reorderable(reordering => reordering.Columns(true)) + %> + + + + + + Sets the localization culture of the grid. + + The culture. + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .Localizable("de-DE") + %> + + + + + + Configures the grid editing settings. + + Configurator for the edit settings. + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .Editable(settings => settings.Enabled(true)) + %> + + + + + + Configures the toolbar of the grid. + + ToolBar configurator. + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .ToolBar(commands => commands.Insert()) + %> + + + + + + Defines a list of the private keys. + + DataKeys configurator. + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .DataKeys(keys => + { + keys.Add(c => c.CustomerID); + }) + %> + + + + + + Configure when to show footer of the grid. + + If it is true, the feature is visible. + + + + Binds the grid to a list of objects + + The type of the data item + The data source. + + + <%= Html.Telerik().Grid<Order>() + .Name("Orders") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]); + %> + + + + + + Callback for each row. + + Action, which will be executed for each row. + You can format the entire row + + + <%= Html.Telerik().Grid() + .Name("Grid") + .RowAction(row => + { + // "DataItem" is the Order object to which the current row is bound to + if (row.DataItem.Freight > 10) + { + //Set the background of the entire row + row.HtmlAttributes["style"] = "background:red;"; + } + }); + %> + + + + + + Callback for each cell. + + Action, which will be executed for each cell. + You can format a concrete cell. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .CellAction(cell => + { + if (cell.Column.Name == "Freight") + { + if (cell.DataItem.Freight > 10) + { + //Set the background of this cell only + cell.HtmlAttributes["style"] = "background:red;"; + } + } + }); + %> + + + + + + Enables or disables the custom binding of the grid. + + If true enables custom binding. + + + + + Defines the columns of the grid. + + The add action. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]); + %> + + + + + + Allows sorting of the columns. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Sortable(); + %> + + + + + + Allows sorting of the columns. + + Use builder to define sort settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Sortable(sorting => sorting.SortMode(GridSortMode.MultipleColumn) + %> + + + + + + Enables row selection. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Selectable() + %> + + + + + + Enables row selection. + + Use builder to define the selection settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Selectable(selection => selection.Enabled(true)) + %> + + + + + + Put grid name as a prefix. + + + + + Allows paging of the data. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Pageable(); + %> + + + + + + Allows paging of the data. + + Use builder to define paging settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Pageable(paging => + paging.PageSize(20) + .Style(GridPagerStyles.NextPreviousAndNumeric) + .Position(GridPagerPosition.Bottom) + ) + %> + + + + + + Use it to configure Server binding. + + Use builder to set different server binding settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .ServerBinding(serverBinding => serverBinding + .Action("Index", "Home", new {id = (string)ViewData["id"]}) + ) + .Pagealbe() + .Sortable(); + %> + + + + + + Use it to configure binding option when performing data operations - paging, sorting and filtering. + + Use builder to set different data binding options. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .DataBinding(dataBinding => + { + dataBinding.Server().Select("FirstLook", "Grid"}); + dataBinding.Ajax().Select("_FirstLook", "Grid").Enabled((bool)ViewData["ajax"]); + }) + .Pagealbe() + .Sortable(); + %> + + + + + + Use it to configure Ajax binding. + + Use builder to set different ajax binding settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_AjaxBinding", "Home")) + .Pagealbe() + .Sortable(); + %> + + + + + + Allows filtering of the columns. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Filterable(); + %> + + + + + + Allows filtering of the columns. + + Use builder to define filtering settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Filterable(filtering => filtering.Enabled(true); + %> + + + + + + Show scrollbar if there are many items. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Scrollable(); + %> + + + + + + Show scrollbar if there are many items. + + Use builder to define scrolling settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Scrollable(scrolling => scrolling.Enabled(true); + %> + + + + + + Enables keyboard navigation. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .KeyboardNavigation(); + %> + + + + + + Enables keyboard navigation. + + Use builder to define keyboard navigation settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .KeyboardNavigation(navigation => navigation.Enabled(true)); + %> + + + + + + Enables column context menu. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .ColumnContextMenu(); + %> + + + + + + Enables column context menu. + + Use builder to column context menu settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .ColumnContextMenu(navigation => navigation.Enabled(true)); + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .ClientEvents(events => events + .OnDataBinding("onDataBinding") + .OnRowDataBound("onRowDataBound") + ) + %> + + + + + + Use it to configure grouping. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Groupable(grouping => grouping.Enabled(true); + %> + + + + + + Allows grouping. + + + + <%= Html.Telerik().Grid() + .Name("Grid") + .Ajax(ajax => ajax.Action("_RelatedGrids_Orders", "Grid", new { customerID = "ALFKI" })) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + .BindTo((IEnumerable<Order>)ViewData["Orders"]) + .Groupable(); + %> + + + + + + Use it to configure web service binding. + + Use builder to set different web service binding settings. + + + <%= Html.Telerik().Grid() + .Name("Grid") + .WebService(webService => webService.Url("~/Models/Orders.asmx/GetOrders")) + .Columns(columns=> + { + columns.Add(c => c.OrderID).Width(100); + columns.Add(c => c.OrderDate).Width(200).Format("{0:dd/MM/yyyy}"); + columns.Add(c => c.ShipAddress); + columns.Add(c => c.ShipCity).Width(200); + }) + %> + + + + + + Sets the HTML content which the grid should display. + + The action which renders the message when grid has no data. + + + <% Html.Telerik().Grid() + .Name("Grid") + .NoRecordsTemplate(() => + { + %> + <strong> Hello World!!!;/strong> + <% + }) + %> + + + + + + Sets the empty message template which will be display if the grid has no data. + + The Razor inline message. + + + @(Html.Telerik().Grid() + .Name("Grid") + .NoRecordsTemplate(@<strong> Hello World!!!</strong>)) + + + + + + + Sets the empty message template which will be display if the grid has no data. + + The action which renders the message when grid has no data. + + <%= Html.Telerik().Grid() + .Name("Grid") + .NoRecordsTemplate("<strong> Hello World!!!</strong>") + %> + + + + + Creates columns for the . + + The type of the data item to which the grid is bound to + + + + Initializes a new instance of the class. + + The container. + + + + Defines a bound column. + + + + + + + + Defines a bound column. + + + + + + + + Defines a bound column. + + + + + Defines a bound column. + + + + + Defines a foreign key column. + + + + + + + + Defines a foreign key column. + + + + + + + + Determines if columns should be automatically generated. + + If true columns should be generated, otherwise false. + + + + Determines if columns should be automatically generated. + + Action which will be executed for each generated column. + + + + Defines a template column. + + + + + + + Defines a template column. + + + + + + + Defines a command column. + + + + + + + Used for action methods when using Ajax or Custom binding + + + + + Initializes a new instance of the class. + + + + + Gets or sets the name of the action parameter. The default value is "command". + + The name of the action parameter. + + + [GridAction(ActionParameterName="param")] + public ActionResult Index(GridCommand param) + { + } + + + + + + Gets or sets the name of the Grid that is populated by the associated action method. Required + when custom server binding is enabled and the grid query string parameters are prefixed. + + + + [GridAction(EnableCustomBinding=true, GridName="Employees")] + public ActionResult Index(GridCommand param) + { + } + + + + + + Gets or sets a value indicating whether custom binding is enabled. Used when implementing custom ajax binding. + + true if custom binding is enabled; otherwise, false. The default value is false. + + + [GridAction(EnableCustomBinding=true)] + public ActionResult Index(GridCommand param) + { + } + + + + + + Defines the fluent interface for configuring + + + + + Initializes a new instance of the class. + + The pager. + + + + Sets the position at which to display the pager. + + The pager position. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.Position(GridPagerPosition.Bottom)) + %> + + + + + + Sets the page size of the grid. + + The number of items to display in a single page. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.PageSize(20)) + %> + + + + + + Sets the page size of the grid. + + The number of items to display in a single page. + The values shown in the pageSize dropdown + + + + + Sets the current page of the grid. + + The page which the grid should display initially. Must be greater than zero. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.PageTo(2)) + %> + + + + + + Sets the pager style. + + The pager style to set. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.Style(GridPagerStyles.PageInput | GridPagerStyles.Numeric)) + %> + + + + + + Sets the total number of items in the data source. Required during Custom binding. + + The value. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.Total((int)ViewData["total"])) + %> + + + + + + Enables or disables paging. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.Enabled((bool)ViewData["enablePaging"])) + %> + + + + The Enabled method is useful when you need to enable paging based on certain conditions. + + + + + Enables or disables paging on scroll. + + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + .Pageable(paging => paging.PageOnScroll((bool)ViewData["pageOnScroll"])) + %> + + + + The PageOnScroll method is useful when you need to enable paging on scroll based on certain conditions. + + + + + Defines methods to manipulate generic link object collections. + + + + + + Initializes a new instance of the class. + + The parent. + + + + Adds an item to the . + + The object to add to the . + The is read-only. + + + + Removes all items from the . + + The is read-only. + + + + Determines whether the contains a specific value. + + The object to locate in the . + + true if is found in the ; otherwise, false. + + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in at which copying begins. + + is null. + + + is less than 0. + + + is multidimensional. + -or- + is equal to or greater than the length of . + -or- + The number of elements in the source is greater than the available space from to the end of the destination . + -or- + Type cannot be cast automatically to the type of the destination . + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + + + + Determines the index of a specific item in the . + + The object to locate in the . + + The index of if found in the list; otherwise, -1. + + + + + Inserts an item to the at the specified index. + + The zero-based index at which should be inserted. + The object to insert into the . + + is not a valid index in the . + The is read-only. + + + + Removes the first occurrence of a specific object from the . + + The object to remove from the . + + true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + + The is read-only. + + + + Removes the item at the specified index. + + The zero-based index of the item to remove. + + is not a valid index in the . + The is read-only. + + + + Gets or sets the T object that is the parent of the current node. + + The parent. + + + + Gets the number of elements contained in the . + + + The number of elements contained in the . + + + + Gets a value indicating whether the is read-only. + + + true if the is read-only; otherwise, false. + + + + Gets or sets the at the specified index. + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Defines the items in the menu + + The add action. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => + events.OnOpen("onOpen").OnClose("onClose") + ) + %> + + + + + + Sets the menu orientation. + + The desired orientation. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Orientation(MenuOrientation.Vertical) + %> + + + + + + Enables or disables the "open-on-click" feature. + + + + <%= Html.Telerik().Menu() + .Name("Menu") + .OpenOnClick(true) + %> + + + + + + Binds the menu to a sitemap + + The view data key. + The action to configure the item. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .BindTo("examples", (item, siteMapNode) => + { + }) + %> + + + + + + Binds the menu to a sitemap. + + The view data key. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .BindTo("examples") + %> + + + + + + Binds the menu to a list of objects. The menu will be "flat" which means a menu item will be created for + every item in the data source. + + The type of the data item + The data source. + The action executed for every data bound item. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .BindTo(new []{"First", "Second"}, (item, value) + { + item.Text = value; + }) + %> + + + + + + Binds the menu to a list of objects. The menu will create a hierarchy of items using the specified mappings. + + The type of the data item + The data source. + The action which will configure the mappings + + + <%= Html.Telerik().Menu() + .Name("Menu") + .BindTo(Model, mapping => mapping + .For<Customer>(binding => binding + .Children(c => c.Orders) // The "child" items will be bound to the the "Orders" property + .ItemDataBound((item, c) => item.Text = c.ContactName) // Map "Customer" properties to MenuItem properties + ) + .For<Order<(binding => binding + .Children(o => null) // "Orders" do not have child objects so return "null" + .ItemDataBound((item, o) => item.Text = o.OrderID.ToString()) // Map "Order" properties to MenuItem properties + ) + ) + %> + + + + + + + Configures the effects of the menu. + + The action which configures the effects. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Effects(fx => + { + fx.Slide() + .Opacity() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Selects the item at the specified index. + + The index. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + .SelectedIndex(1) + %> + + + + + + Callback for each item. + + Action, which will be executed for each item. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ItemAction(item => + { + item + .Text(...) + .HtmlAttributes(...); + }) + %> + + + + + + Select item depending on the current URL. + + If true the item will be highlighted. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .HighlightPath(true) + %> + + + + + + Defines the fluent interface for configuring child menu items. + + + + + Initializes a new instance of the class. + + The item. + + + + Configures the child items of a . + + The add action. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }); + }) + %> + + + + + + + Specifies the orientation in which the menu items will be ordered + + + + + Items are oredered horizontally + + + + + Items are oredered vertically + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnOpen client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnOpen(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnOpen( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnOpen client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnOpen("onOpen")) + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnClose(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnClose( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnClose client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnClose("onClose")) + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnSelect(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnSelect( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnSelect("onSelect")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Menu() + .Name("Menu") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + INavigatable extension for providing access to . + + + + + Sets the action, controller name and route values of object. + + The object. + The route values of the Action method. + + + + Sets the action and controller name, along with Route values of object. + + The object. + Action name. + Controller name. + Route values as an object + + + + Sets the action, controller name and route values of object. + + The object. + Action name. + Controller name. + Route values as + + + + Sets the action and route values of object. + + The object. + The controller action. + + + + Sets the url property of object. + + The object. + The Url. + + + + Sets the route name and route values of object. + + The object. + Route name. + Route values as an object. + + + + Sets the route name and route values of object. + + The object. + Route name. + Route values as . + + + + Generating url depending on the ViewContext and the generator. + + The object. + The object + The generator. + + + + Determines whether the specified navigatable matches the current request URL. + + The object. + The object. + The generator. + + + + + Generating url depending on the ViewContext and the generator. + + The object. + The object + The generator. + + + + Verify whether the object is accessible. + + The object. + The object. + The object + + + + Verifies whether collection of objects is accessible. + + Object of type. + The object. + The object. + The object + + + + Determines whether this instance has value. + + true if either ActionName and ControllerName, RouteName or Url are set; false otherwise + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Defines the items in the panelbar + + The add action. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => + events.OnExpand("onExpand").OnCollapse("onCollapse") + ) + %> + + + + + + Binds the panelbar to a sitemap + + The view data key. + The action to configure the item. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .BindTo("examples", (item, siteMapNode) => + { + }) + %> + + + + + + Binds the panelbar to a sitemap. + + The view data key. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .BindTo("examples") + %> + + + + + + Binds the panelbar to a list of objects + + The type of the data item + The data source. + The action executed for every data bound item. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .BindTo(new []{"First", "Second"}, (item, value) + { + item.Text = value; + }) + %> + + + + + + Binds the panelbar to a list of objects. The panelbar will create a hierarchy of items using the specified mappings. + + The type of the data item + The data source. + The action which will configure the mappings + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .BindTo(Model, mapping => mapping + .For<Customer>(binding => binding + .Children(c => c.Orders) // The "child" items will be bound to the the "Orders" property + .ItemDataBound((item, c) => item.Text = c.ContactName) // Map "Customer" properties to PanelBarItem properties + ) + .For<Order<(binding => binding + .Children(o => null) // "Orders" do not have child objects so return "null" + .ItemDataBound((item, o) => item.Text = o.OrderID.ToString()) // Map "Order" properties to PanelBarItem properties + ) + ) + %> + + + + + + Configures the effects of the panelbar. + + The action which configures the effects. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Effects(fx => + { + fx.Height() + .Opacity() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Callback for each item. + + Action, which will be executed for each item. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ItemAction(item => + { + item + .Text(...) + .HtmlAttributes(...); + }) + %> + + + + + + Select item depending on the current URL. + + If true the item will be highlighted. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .HighlightPath(true) + %> + + + + + + Renders the panelbar with expanded items. + + If true the panelbar will be expanded. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ExpandAll(true) + %> + + + + + + Sets the expand mode of the panelbar. + + The desired expand mode. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ExpandMode(PanelBarExpandMode.Multiple) + %> + + + + + + Selects the item at the specified index. + + The index. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + .SelectedIndex(1) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnExpand client-side event + + The action defining the inline handler. + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnExpand(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnExpand client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnExpand( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnExpand client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnExpand("onExpand")) + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The action defining the inline handler. + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnCollapse(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnCollapse client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnCollapse( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnCollapse client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnCollapse("onCollapse")) + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnSelect(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnSelect( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnSelect("onSelect")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Specifies the expand mode in which the panelbar will expand its items + + + + + Only one item can be expanded. + + + + + All items can be expanded + + + + + Defines the fluent interface for configuring child panelbar items. + + + + + Initializes a new instance of the class. + + The item. + The context of the View. + + + + Configures the child items of a . + + The add action. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }); + }) + %> + + + + + + Define when the item will be expanded on intial render. + + If true the item will be expanded. + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(items => + { + items.Add().Text("First Item").Items(firstItemChildren => + { + firstItemChildren.Add().Text("Child Item 1"); + firstItemChildren.Add().Text("Child Item 2"); + }) + .Expanded(true); + }) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnSelect(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnSelect( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnSelect("onSelect")) + %> + + + + + + Defines the inline handler of the OnContentLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnContentLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnContentLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnContentLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnContentLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnContentLoad("onContentLoad")) + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Defines the items in the tabstrip + + The add action. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ClientEvents(events => + events.OnSelect("onSelect").OnLoad("onLoad") + ) + %> + + + + + + Binds the tabstrip to a sitemap + + The view data key. + The action to configure the item. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .BindTo("examples", (item, siteMapNode) => + { + }) + %> + + + + + + Binds the tabstrip to a sitemap. + + The view data key. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .BindTo("examples") + %> + + + + + + Binds the tabstrip to a list of objects + + The type of the data item + The data source. + The action executed for every data bound item. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .BindTo(new []{"First", "Second"}, (item, value) + { + item.Text = value; + }) + %> + + + + + + Configures the effects of the tabstrip. + + The action which configures the effects. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .Effects(fx => + { + fx.Slide() + .Opacity() + .OpenDuration(AnimationDuration.Normal) + .CloseDuration(AnimationDuration.Normal); + }) + + + + + + Selects the item at the specified index. + + The index. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + .SelectedIndex(1) + %> + + + + + + Callback for each item. + + Action, which will be executed for each item. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .ItemAction(item => + { + item + .Text(...) + .HtmlAttributes(...); + }) + %> + + + + + + Select item depending on the current URL. + + If true the item will be highlighted. + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .HighlightPath(true) + %> + + + + + + Defines the fluent interface for configuring child tabstrip items. + + + + + Initializes a new instance of the class. + + The item. + The context of the View. + + + + Contains constants for CSS class names + + + + + Active state of items + + + + + Button with plain text content + + + + + Button with an icon and text content + + + + + Button with an icon only + + + + + Bare button with an icon only (no background and borders) + + + + + Content - rendered around custom content + + + + + Default state of items + + + + + Disabled state of items + + + + + Group - rendered around grouped items (children) + + + + + Header - rendered on headers or header items + + + + + Hovered state of items + + + + + Icon - icon from default icon set + + + + + Image - image rendered through ImageUrl + + + + + Item - rendered on items + + + + + First in list of items + + + + + Last in list of items + + + + + Top in list of items + + + + + Bottom in list of items + + + + + Middle in list of items + + + + + Last in list of headers + + + + + Link - rendered on all links + + + + + Reset - removes inherited styles + + + + + Selected state of items + + + + + Sprite - sprite rendered in the begging of the item. + + + + + Widget - rendered always on the outmost HTML element of a UI component + + + + + Input - input rendered in the div wrapper + + + + + CheckBox - rendered on all checkbox + + + + + ToolBar - rendered on all toolbars + + + + + Alternating class for zebra stripes + + + + + Scrollable - rendered on all elements that wish to be scrollable on touch devices + + + + + Contains CSS classes for icons + + + + + "Delete" icon + + + + + "Delete Group" icon + + + + + "Minimize" icon + + + + + "Maximize" icon + + + + + "Close" icon + + + + + Contains CSS classes, used in the grid + + + + + Grid action + + + + + Container element for editing / inserting form + + + + + Container element for editing / inserting form + + + + + Toolbar which contains different commands + + + + + Contains CSS classes, used in the treeview + + + + + Class that shows treeview lines + + + + + Contains CSS classes, used in the editor + + + + + Button in editor toolbar + + + + + Color picker in editor toolbar + + + + + Editor tool icon + + + + + Editor custom tool + + + + + Editor textarea element + + + + Slider increase button. + + + Slider decrease button. + + + Horizontal splitter + + + Vertical splitter + + + Splitter pane + + + + UI primitives for Upload + + + + + Upload button + + + + + Contains CSS classes, used in the window + + + + + Window content area + + + + + Window title bar + + + + + A builder class for + + + + + Initializes a new instance of the class. + + The async settings. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", new RouteValueDictionary{ {"id", 1} }) + ) + %> + + + + + + Sets a value indicating whether to start the upload immediately after selecting a file + + true if the upload should start immediately after selecting a file, false otherwise; true by default + + + + + + + Sets the action, controller and route values for the save operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", new RouteValueDictionary{ {"id", 1} }); + ) + %> + + + + + + Sets the action, controller, route values and field name for the save operation + + Name of the action. + Name of the controller. + + The form field name to use for submiting the files. + The Upload name is used if not set. + + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", "attachment", new RouteValueDictionary{ {"id", 1} }); + ) + %> + + + + + + Sets the action, controller and route values for the save operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", new { id = 1 }); + ) + %> + + + + + + Sets the action, controller and route values for the save operation + + Name of the action. + Name of the controller. + + The form field name to use for submiting the files. + The Upload name is used if not set. + + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", "attachments", new { id = 1 }); + ) + %> + + + + + + Sets the action and controller for the save operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home"); + ) + %> + + + + + + Sets the action and controller for the save operation + + Name of the action. + Name of the controller. + + The form field name to use for submiting the files. + The Upload name is used if not set. + + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Home", "attachments"); + ) + %> + + + + + + Sets the route name for the save operation + + Name of the route. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Default"); + ) + %> + + + + + + Sets the route values for the save operation + + The route values of the action method. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save(MVC.Home.Save(1).GetRouteValueDictionary()); + ) + %> + + + + + + Sets the route and values for the save operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + ) + %> + + + + + + Sets the route and values for the save operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Default", new { id = 1 }); + ) + %> + + + + + + Sets the action for the save operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save<HomeController>(controller => controller.Save())); + ) + %> + + + + + + Sets the action, controller and route values for the remove operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Remove", "Home", new RouteValueDictionary{ {"id", 1} }); + ) + %> + + + + + + Sets the action, controller and route values for the remove operation + + Name of the action. + Name of the controller. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Remove", "Home", new { id = 1 }); + ) + %> + + + + + + Sets the action and controller for the remove operation + + Name of the action. + Name of the controller. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Remove", "Home"); + ) + %> + + + + + + Sets the route name for the remove operation + + Name of the route. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Default"); + ) + %> + + + + + + Sets the route values for the remove operation + + The route values of the action method. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove(MVC.Home.Remove(1).GetRouteValueDictionary()); + ) + %> + + + + + + Sets the route and values for the remove operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Default", "Home", new RouteValueDictionary{ {"id", 1} }); + ) + %> + + + + + + Sets the route and values for the remove operation + + Name of the route. + The route values. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove("Default", new { id = 1 }); + ) + %> + + + + + + Sets the action for the remove operation + + The type of the controller. + The action. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Remove<HomeController>(controller => controller.Remove())); + ) + %> + + + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The component. + + + + Configures the client-side events. + + The client events configuration action. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events + .OnLoad("onLoad") + .OnUpload("onUpload") + ) + %> + + + + + + Enables or disables the component. + + true if the component should be enabled, false otherwise; the default is true. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Enable(false) + %> + + + + + + Enables or disables multiple file selection. + + true if multiple file selection should be enabled, false otherwise; the default is true. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Multiple(false) + %> + + + + + + Sets a value indicating whether to show the list of uploaded files + + true if the list of uploaded files should be visible, false otherwise; true by default + + + + Use it to configure asynchronous uploading. + + Use builder to set different asynchronous uploading options. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("Save", "Compose") + .Remove("Remove", "Compose") + ); + %> + + + + + + Sets the localization culture of the upload. + + The culture. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Localizable("de-DE") + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSelect(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSelect client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSelect( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSelect client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSelect("onSelect")) + %> + + + + + + Defines the inline handler of the OnUpload client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnUpload(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnUpload client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnUpload( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnUpload client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnUpload("onUpload")) + %> + + + + + + Defines the inline handler of the OnSuccess client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSuccess(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnSuccess client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSuccess( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnSuccess client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnSuccess("onSuccess")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Defines the inline handler of the OnComplete client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnComplete(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnComplete client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnComplete( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnComplete client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnComplete("onComplete")) + %> + + + + + + Defines the inline handler of the OnCancel client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnCancel(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnCancel client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnCancel( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnCancel client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnCancel("onCancel")) + %> + + + + + + Defines the inline handler of the OnRemove client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnRemove(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnRemove client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnRemove( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnRemove client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Upload() + .Name("Upload") + .ClientEvents(events => events.OnRemove("onRemove")) + %> + + + + + + An HTML Builder for the Upload component + + + + + Initializes a new instance of the class. + + The Upload component. + + + + Creates the upload top-level div. + + + + + + Creates the button text element. + + + + + + Creates the file input element. + + + + + + Builds the Upload component markup. + + + + + + Defines an interface for asynchronous upload settings + + + + + Defines the Save action + + + + + Defines the name of the form field submitted to the Save action. + The default value is the Upload name. + + + + + Defines the Remove action + + + + + Gets or sets a value indicating whether to start the upload immediately after selecting a file + + + + + Defines the asynchronous uploading settings + + + + + Initializes a new instance of the class. + + + + + Serializes the asynchronous uploading settings to the writer. + + The writer object. + + + + Defines the Save action + + + + + Defines the name of the form field submitted to the Save action. + The default value is the Upload name. + + + + + Defines the Remove action + + + + + Gets or sets a value indicating whether to start the upload immediately after selecting a file + + + true if the upload should start immediately after selecting a file, false otherwise; true by default + + + + + Telerik Upload for ASP.NET MVC is a view component for uploading files. + It supports the following features: + + Asynchronous uploading + Progress tracking + Multiple file selection + Drag & drop + + Note that some of the features depend on browser capabilities. + For more information, see the online documentation. + + + + + Initializes a new instance of the class. + + The view context. + The client side object writer factory. + + + + Writes the initialization script. + + The writer object. + + + + Writes the Upload HTML. + + The writer object. + + + + Represents the client-side event handlers for the component + + + + + Gets or sets a value indicating if the component is enabled. + + + true if the component should be enabled, false otherwise; the default is true. + + + + + Gets or sets a value indicating if multiple file selection is enabled. + + + true if multiple file selection should be enabled, false otherwise; the default is true. + + + + + Gets or sets a value indicating whether to show the list of uploaded files + + + true if the list of uploaded files should be visible, false otherwise; true by default + + + + + Defines the asynchronous uploading settings + + + + + Gets or sets the URL generator. + + The URL generator. + + + + The localization strings for the component + + + + + Represents the client-side events of the component. + + + + + Initializes a new instance of the class. + + + + + Serializes the client-side events. + + The writer object to serialize to. + + + + Defines the Load client-side event handler + + + + + Defines the Select client-side event handler + + + + + Defines the Upload client-side event handler + + + + + Defines the Success client-side event handler + + + + + Defines the Error client-side event handler + + + + + Defines the Complete client-side event handler + + + + + Defines the Cancel client-side event handler + + + + + Defines the Remove client-side event handler + + + + + Localization strings for the Upload component + + + + + Initializes a new instance of the class. + + The localization service. + The culture. + + + + Serializes the localization strings. + + The key. + The writer. + + + + Gets the Select string. + + The default value is "Select...". + + + + Gets the Cancel string. + + The default value is "Cancel". + + + + Gets the Retry string. + + The default value is "Retry". + + + + Gets the Remove string. + + The default value is "Remove". + + + + Gets the UploadSelectedFiles string. + + The default value is "Upload files". + + + + Gets the DropFilesHere string. + + The default value is "drop files here to upload". + + + + Gets the "uploading" status string. + + The default value is "uploading". + + + + Gets the "uploaded" status string. + + The default value is "uploaded". + + + + Gets the "failed" status string. + + The default value is "failed". + + + + Provides the factory methods for creating Telerik View Components. + + + + + Creates a + + + + <%= Html.Telerik().StyleSheetRegistrar() + .DefaultGroup(group => group + group.Add("Site.css") + .Add("telerik.common.css") + .Add("telerik.vista.css") + .Compressed(true) + ) + %> + + + + + + Creates a + + + + <%= Html.Telerik().ScriptRegistrar() + %> + + + + + + Creates a + + + + <%= Html.Telerik().Menu() + .Name("Menu") + .Items(items => { /* add items here */ }); + %> + + + + + + Creates a + + + + <%= Html.Telerik().Editor() + .Name("Editor"); + %> + + + + + + Creates a new bound to the specified data item type. + + + The type of the data item + + <%= Html.Telerik().Grid<Order>() + .Name("Grid") + .BindTo(Model) + %> + + + + Do not forget to bind the grid using the method when using this overload. + + + + + Creates a new bound to the specified data source. + + The type of the data item + The data source. + + + <%= Html.Telerik().Grid(Model) + .Name("Grid") + %> + + + + + + Creates a new bound to a DataTable. + + DataTable from which the grid instance will be bound + + + + Creates a new bound to a DataView. + + DataView from which the grid instance will be bound + + + + Creates a new bound an item in ViewData. + + Type of the data item + The data source view data key. + + + <%= Html.Telerik().Grid<Order>("orders") + .Name("Grid") + %> + + + + + + Creates a + + + + <%= Html.Telerik().Splitter() + .Name("Splitter"); + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TabStrip() + .Name("TabStrip") + .Items(items => + { + items.Add().Text("First"); + items.Add().Text("Second"); + }) + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DateTimePicker() + .Name("DateTimePicker") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DatePicker() + .Name("DatePicker") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TimePicker() + .Name("TimePicker") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().Calendar() + .Name("Calendar") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().PanelBar() + .Name("PanelBar") + .Items(items => + { + items.Add().Text("First"); + items.Add().Text("Second"); + }) + %> + + + + + + Creates a + + + + <%= Html.Telerik().TreeView() + .Name("TreeView") + .Items(items => { /* add items here */ }); + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().NumericTextBox() + .Name("NumericTextBox") + %> + + + Returns . + + + + + Creates a new . + + + + <%= Html.Telerik().CurrencyTextBox() + .Name("CurrencyTextBox") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().PercentTextBox() + .Name("PercentTextBox") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().IntegerTextBox() + .Name("IntegerTextBox") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().Window() + .Name("Window") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DropDownList() + .Name("DropDownList") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().ComboBox() + .Name("ComboBox") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().AutoComplete() + .Name("AutoComplete") + .Items(items => + { + items.Add().Text("First Item"); + items.Add().Text("Second Item"); + }) + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().Slider() + .Name("Slider") + %> + + + + + + Creates a new . + + + + <%= Html.Telerik().RangeSlider() + .Name("RangeSlider") + %> + + + + + + Creates a + + + + <%= Html.Telerik().Upload() + .Name("Upload") + .Async(async => async + .Save("ProcessAttachments", "Home") + .Remove("RemoveAttachment", "Home") + ) + %> + + + + + + Creates a + + + + <%= Html.Telerik().Chart() + .Name("Chart") + %> + + + + + + Creates a new bound to the specified data source. + + The type of the data item + The data source. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + %> + + + + + + Creates a new bound an item in ViewData. + + Type of the data item + The data source view data key. + + + <%= Html.Telerik().Chart<SalesData>("sales") + .Name("Chart") + %> + + + + + + Creates a new unbound . + + + + <%= Html.Telerik().Chart("sales") + .Name("Chart") + .Series(series => { + series.Bar(new int[] { 1, 2, 3 }).Name("Total Sales"); + }) + %> + + + + + + Creates a new UI component. + + + + + Creates a new . + + + + <%= Html.Telerik().NumericTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().NumericTextBoxFor(m=>m.NullableProperty) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().IntegerTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().IntegerTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().CurrencyTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().CurrencyTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().PercentTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().PercentTextBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DateTimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DateTimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DatePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DatePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().TimePickerFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().DropDownListFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().ComboBoxFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().AutoCompleteFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().SliderFor(m=>m.Property) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().SliderFor(m=>m.NullableProperty) %> + + + + + + Creates a new . + + + + <%= Html.Telerik().RangeSliderFor(m=>m.Property) %> + + + + + + Enables zoom animation. + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The instance that is to be configured + + + + Configures the window to show a close button + + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Close()) + %> + + + + + + Configures the window to show a close button and sets a fallback URL for environments where JavaScript is turned off. + + The fallback URL + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Close(Url.Action("Home", "Index"))) + %> + + + + + + Configures the window to show a minimize button + + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Maximize()) + %> + + + + + + Configures the window to show a minimize button and sets a fallback URL for environments where JavaScript is turned off. + + The fallback URL + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Maximize(Url.Action("Home", "Index"))) + %> + + + + + + Configures the window to show a refresh button + + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Refresh()) + %> + + + + + + Configures the window to show a refresh button and sets a fallback URL for environments where JavaScript is turned off. + + The fallback URL + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Refresh(Url.Action("Home", "Index"))) + %> + + + + + + Configures the window to show no buttons in its titlebar. + + + + <%= Html.Telerik().Window() + .Name("Window") + .Buttons(buttons => buttons.Clear()) + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The client events. + The view context. + + + + Defines the inline handler of the OnLoad client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnLoad(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnLoad client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnLoad( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnLoad client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnLoad("onLoad")) + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnOpen(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnOpen client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnOpen( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnOpen client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnOpen("onOpen")) + %> + + + + + + Defines the inline handler of the OnActivate client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnActivate(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnActivate client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnActivate( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnActivate client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnActivate("onActivate")) + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnClose(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnClose client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnClose( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnClose client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnClose("onClose")) + %> + + + + + + Defines the inline handler of the OnMove client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnMove(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnMove client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnMove( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnMove client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnMove("onMove")) + %> + + + + + + Defines the inline handler of the OnResize client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnResize(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnResize client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnResize( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnResize client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnResize("onResize")) + %> + + + + + + Defines the inline handler of the OnRefresh client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnRefresh(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnRefresh client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnRefresh( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnRefresh client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnRefresh("onRefresh")) + %> + + + + + + Defines the inline handler of the OnError client-side event + + The action defining the inline handler. + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnError(() => + { + %> + function(e) { + //event handling code + } + <% + })) + .Render(); + %> + + + + + + Defines the inline handler of the OnError client-side event + + The handler code wrapped in a text tag (Razor syntax). + + + <% Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnError( + @<text> + function(e) { + //event handling code + } + </text> + )) + .Render(); + %> + + + + + + Defines the name of the JavaScript function that will handle the the OnError client-side event. + + The name of the JavaScript function that will handle the event. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => events.OnError("onError")) + %> + + + + + + Sets path to the icon. + + Path to the icon. + + + <%= Html.Telerik().Window() + .Name("Window") + .Icon(Url.Content("~/Content/Icons/WindowIcon.png")) + %> + + + + + + Sets path and alternative text to the icon. + + Path to the icon. + Alternative text to the icon. + + + <%= Html.Telerik().Window() + .Name("Window") + .Icon(Url.Content("~/Content/Icons/WindowIcon.png"), "icon") + %> + + + + + + Sets title, which appears in the header of the window. + + + + + Sets the HTML content which the window should display. + + The action which renders the content. + + + <% Html.Telerik().Window() + .Name("Window") + .Content(() => + { + %> + <strong> First Item Content</strong> + <% + }) + %> + + + + + + Sets the HTML content which the window should display + + The Razor inline template + + + @(Html.Telerik().Window() + .Name("Window") + .Content(@<strong> Hello World!!!</strong>)) + + + + + + + Sets the HTML content which the item should display as a string. + + The action which renders the content. + + <%= Html.Telerik().Window() + .Name("Window") + .Content("<strong> First Item Content</strong>") + %> + + + + + Sets the HTML attributes of the content element of the item. + + The attributes. + + + <%= Html.Telerik().Window() + .Name("Window") + .Content(() => { %> <strong>First Item Content</strong> <% }) + .ContentHtmlAttributes(new {@class="first-item-content"}) + %> + + + + + + Sets the HTML attributes of the content element of the item. + + The attributes. + + + + Sets the Url, which will be requested to return the content. + + The route values of the Action method. + + + <%= Html.Telerik().Window() + .Name("Window") + .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary()); + %> + + + + + + Sets the Url, which will be requested to return the content. + + The action name. + The controller name. + + + <%= Html.Telerik().Window() + .Name("Window") + .LoadContentFrom("AjaxView_OpenSource", "Window") + %> + + + + + + Sets the Url, which will be requested to return the content. + + The action name. + The controller name. + Route values. + + + <%= Html.Telerik().Window() + .Name("Window") + .LoadContentFrom("AjaxView_OpenSource", "Window", new { id = 10}) + %> + + + + + + Sets the Url, which will be requested to return the content. + + The url. + + + <%= Html.Telerik().Window() + .Name("Window") + .LoadContentFrom(Url.Action("AjaxView_OpenSource", "Window")) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => + events.OnOpen("onOpen").OnClose("onClose") + ) + %> + + + + + + Enables windows resizing. + + + + <%= Html.Telerik().Window() + .Name("Window") + .Resizable() + %> + + + + + + Configures the resizing ability of the window. + + Resizing settings action. + + + <%= Html.Telerik().Window() + .Name("Window") + .Resizable(settings => + settings.Enabled(true).MaxHeight(500).MaxWidth(500) + ) + %> + + + + + + Configures the client-side events. + + The client events action. + + + <%= Html.Telerik().Window() + .Name("Window") + .ClientEvents(events => + events.OnOpen("onOpen").OnClose("onClose") + ) + %> + + + + + + Sets the width of the window. + + + + + Sets the height of the window. + + + + + Sets whether the window should be rendered visible. + + + + + Sets whether the window should have scrollbars. + + + + + Configures the effects of the window. + + The action which configures the effects. + + + <%= Html.Telerik().Window() + .Name("Window") + .Effects(fx => + { + fx.Zoom() + .Opacity() + .OpenDuration(AnimationDuration.Fast) + .CloseDuration(AnimationDuration.Fast); + }) + + + + + + Sets whether the window should be modal or not. + + + + + Sets whether the window can be moved. + + + + + Builder class for fluently configuring the shared group. + + + + + Initializes a new instance of the class. + + The default path. + The assets. + + + + Adds the group. + + The name. + The configure action. + + + + + Gets the group. + + The name. + The configure action. + + + + + + + + + + Executes the provided delegate that is used to configure stylesheets. + + The configure action. + + + + Executes the provided delegate that is used to configure scripts. + + The configure action. + + + + The web asset Configuration. + + + + + Gets the name of the section. + + The name of the section. + + + + Gets or sets a value indicating whether to use telerik content delivery network. + + + true if [use telerik content delivery network]; otherwise, false. + + + + + Gets the style sheets. + + The style sheets. + + + + Gets the scripts. + + The scripts. + + + + Web asset item configuration element. + + + + + Gets or sets the source. + + The source. + + + + Web asset item configuration collection. + + + + + Adds the specified element. + + The element. + + + + When overridden in a derived class, creates a new . + + + A new . + + + + + Gets the element key for a specified configuration element when overridden in a derived class. + + The to return the key for. + + An that acts as the key for the specified . + + + + + Gets the with the specified source. + + + + + + Web asset group configuration element. + + + + + Gets or sets the name. + + The name. + + + + Gets or sets the default path. + + The default path. + + + + Gets or sets a value indicating whether to use telerik content delivery network. + + + true if [use telerik content delivery network]; otherwise, false. + + + + + Gets or sets the content delivery network URL. + + The content delivery network URL. + + + + Gets or sets a value indicating whether this is enabled. + + true if enabled; otherwise, false. + + + + Gets or sets the version. + + The version. + + + + Gets or sets a value indicating whether this is compress. + + true if compress; otherwise, false. + + + + Gets or sets the cache duration in days. + + The cache duration in days. + + + + Gets or sets a value indicating whether this is combined. + + true if combined; otherwise, false. + + + + Gets the items. + + The items. + + + + Web asset group configuration collection + + + + + Adds the specified element. + + The element. + + + + When overridden in a derived class, creates a new . + + + A new . + + + + + Gets the element key for a specified configuration element when overridden in a derived class. + + The to return the key for. + + An that acts as the key for the specified . + + + + + Gets the with the specified name. + + + + + + The HttpHandler to compress, cache and combine web assets. + + + + + Initializes a new instance of the class. + + The asset registry. + The HTTP response compressor. + The HTTP response cacher. + + + + Initializes a new instance of the class. + + + + + Enables a WebAssetHttpHandler object to process of requests. + + The context. + + + + Gets or sets the default path of the asset. + + The default path. + + + + Gets or sets the name of the id parameter. + + The name of the id parameter. + + + + Contains default asset settings. + + + + + Gets or sets the style sheet files path. Path must be a virtual path. + + The style sheet files path. + + + + Gets or sets the script files path. Path must be a virtual path. + + The script files path. + + + + Gets or sets the version. + + The version. + + + + Gets or sets a value indicating whether assets should be served as compressed. + + true if compress; otherwise, false. + + + + Gets or sets a value indicating whether assets shoule be combined. + + true if combined; otherwise, false. + + + + Gets or sets the cache duration in days. + + The cache duration in days. + + + + Gets or sets a value indicating whether [use telerik content delivery network]. + + + true if [use telerik content delivery network]; otherwise, false. + + + + + Defines members that a class must implement in order to provide helper methods for resolving virtual path. + + + + + Returns the physical path for the specified virtual path. + + The virtual path. + + + + + Defines members that a class must implement in order to compress the response. + + + + + Compresses the response. + + The context. + + + + Defines members that must be implemented for cache the http response + + + + + Caches the response for the specified duration. + + The context. + The duration. + + + + Defines the read operaations of configuration. + + + + + Gets the section with the specified name. + + + Name of the section. + + + + + Defines the factory to create . + + + + + Creates a writer. + + The id. + The type. + The text writer. + + + + + Provides an attribute to change the enum value for client side. + + + + + Initializes a new instance of the class with the specified value for the client side. + + The value. + + + + Gets or sets the value for client side. + + The value. + + + + Encapsulates the ConfigurationManager object that contains methods for accessing System.Web.HttpRuntime.Cache object. + + + + + Gets the section with the specified name. + + + Name of the section. + + + + + Contains extension methods of IDictionary<string, objectT>. + + + + + Merges the specified instance. + + The instance. + The key. + The value. + if set to true [replace existing]. + + + + Appends the in value. + + The instance. + The key. + The separator. + The value. + + + + Appends the specified value at the beginning of the existing value + + + + + + + + + Toes the attribute string. + + The instance. + + + + + Merges the specified instance. + + The instance. + From. + if set to true [replace existing]. + + + + Merges the specified instance. + + The instance. + From. + + + + Merges the specified instance. + + The instance. + The values. + if set to true [replace existing]. + + + + Merges the specified instance. + + The instance. + The values. + + + + Contains extension methods of . + + + + + Requests the context. + + The instance. + + + + + Gets a value indicating whether we're running under Mono. + + true if Mono; otherwise, false. + + + + Gets a value indicating whether we're running under Linux or a Unix variant. + + true if Linux/Unix; otherwise, false. + + + + Encapsulates the HTTP intrinsic object that compress the response + + + + + Compresses the response. + + The context. + + + + Class use to resolve physical path for virtual path. + + + + + Returns the physical path for the specified virtual path. + + The virtual path. + + + + + Helper class for argument validation. + + + + + Ensures the specified argument is not null. + + The parameter. + Name of the parameter. + + + + Ensures the specified string is not blank. + + The parameter. + Name of the parameter. + + + + Ensures the specified array is not null or empty. + + + The parameter. + Name of the parameter. + + + + Ensures the specified collection is not null or empty. + + + The parameter. + Name of the parameter. + + + + Ensures the specified value is a positive integer. + + The parameter. + Name of the parameter. + + + + Ensures the specified value is not a negative integer. + + The parameter. + Name of the parameter. + + + + Ensures the specified value is not a negative float. + + The parameter. + Name of the parameter. + + + + Ensures the specified path is a virtual path which starts with ~/. + + The parameter. + Name of the parameter. + + + + Contains extension methods of . + + + + + Starts thread safe read write code block. + + The instance. + + + + + Starts thread safe read code block. + + The instance. + + + + + Starts thread safe write code block. + + The instance. + + + + + Contains the extension methods of . + + + + + Replaces the format item in a specified System.String with the text equivalent of the value of a corresponding System.Object instance in a specified array. + + A string to format. + An System.Object array containing zero or more objects to format. + A copy of format in which the format items have been replaced by the System.String equivalent of the corresponding instances of System.Object in args. + + + + Determines whether this instance and another specified System.String object have the same value. + + The string to check equality. + The comparing with string. + + true if the value of the comparing parameter is the same as this string; otherwise, false. + + + + + Determines whether this instance and another specified System.String object have the same value. + + The string to check equality. + The comparing with string. + + true if the value of the comparing parameter is the same as this string; otherwise, false. + + + + + Compresses the specified instance. + + The instance. + + + + + Decompresses the specified instance. + + The instance. + + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + Looks up a localized string similar to "{0}" array cannot be empty.. + + + + + Looks up a localized string similar to You must use InCell edit mode for batch updates.. + + + + + Looks up a localized string similar to The Update data binding setting is required for batch updates. Please specify the Update action or url in the DataBinding configuration.. + + + + + Looks up a localized string similar to "{0}" cannot be negative.. + + + + + Looks up a localized string similar to "{0}" cannot be negative or zero.. + + + + + Looks up a localized string similar to "{0}" cannot be null.. + + + + + Looks up a localized string similar to "{0}" cannot be null or empty.. + + + + + Looks up a localized string similar to Cannot find a public property of primitive type to sort by.. + + + + + Looks up a localized string similar to Cannot have more one column in order when sort mode is set to single column.. + + + + + Looks up a localized string similar to Cannot route to class named 'Controller'.. + + + + + Looks up a localized string similar to Cannot use Ajax and WebService binding at the same time.. + + + + + Looks up a localized string similar to Cannot use PageOnScroll with Server binding.. + + + + + Looks up a localized string similar to Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well.. + + + + + Looks up a localized string similar to "{0}" collection cannot be empty.. + + + + + Looks up a localized string similar to Multiple types were found that match the controller named '{0}'. This can happen if the route that services this request does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter. + + The request for '{0}' has found the following matching controllers:{1}. + + + + + Looks up a localized string similar to Multiple types were found that match the controller named '{0}'. This can happen if the route that services this request ('{1}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter. + + The request for '{0}' has found the following matching controllers:{2}. + + + + + Looks up a localized string similar to Controller name must end with 'Controller'.. + + + + + Looks up a localized string similar to The DataKeys collection is empty. Please specify a data key.. + + + + + Looks up a localized string similar to DataTable InLine editing and custom EditorTemplate per column is not supported. + + + + + Looks up a localized string similar to The Delete data binding setting is required by the delete command. Please specify the Delete action or url in the DataBinding configuration.. + + + + + Looks up a localized string similar to The Update data binding setting is required by the edit command. Please specify the Update action or url in the DataBinding configuration.. + + + + + Looks up a localized string similar to {0} should not be bigger then {1}.. + + + + + Looks up a localized string similar to Group with specified name already exists.. + + + + + Looks up a localized string similar to Group with specified name "{0}" already exists. Please specify a different name.. + + + + + Looks up a localized string similar to Group with "{0}" does not exist in {1} SharedWebAssets.. + + + + + Looks up a localized string similar to Group with specified name "{0}" does not exist. Please make sure you have specified a correct name.. + + + + + Looks up a localized string similar to InCell editing mode is not supported in server binding mode. + + + + + Looks up a localized string similar to InCell editing mode is not supported when ClientRowTemplate is used. + + + + + Looks up a localized string similar to Provided index is out of range.. + + + + + Looks up a localized string similar to The Insert data binding setting is required by the insert command. Please specify the Insert action or url in the DataBinding configuration.. + + + + + Looks up a localized string similar to Item with specified source already exists.. + + + + + Looks up a localized string similar to Local group with name "{0}" already exists.. + + + + + Looks up a localized string similar to The key with the following name "{0}" was not found. Please update all localization files.. + + + + + Looks up a localized string similar to Bound columns require a field or property access expression.. + + + + + Looks up a localized string similar to {0} should be less than {1}.. + + + + + Looks up a localized string similar to Name cannot be blank.. + + + + + Looks up a localized string similar to Name cannot contain spaces.. + + + + + Looks up a localized string similar to "None" is only used for internal purpose.. + + + + + Looks up a localized string similar to Only one ScriptRegistrar is allowed in a single request.. + + + + + Looks up a localized string similar to Only one StyleSheetRegistrar is allowed in a single request.. + + + + + Looks up a localized string similar to Only property and field expressions are supported. + + + + + Looks up a localized string similar to Paging must be enabled to use PageOnScroll.. + + + + + Looks up a localized string similar to The {0} must be begger then 0.. + + + + + Looks up a localized string similar to {0} must be positive number.. + + + + + Looks up a localized string similar to {0} should be bigger than {1} and less then {2}. + + + + + Looks up a localized string similar to The "{0}" class is no longer supported. To enable RTL support you must include telerik.rtl.css and apply the "t-rtl" class to a parent HTML element or the <body>.. + + + + + Looks up a localized string similar to Scrolling must be enabled to use PageOnScroll.. + + + + + Looks up a localized string similar to You must have SiteMap defined with key "{0}" in ViewData dictionary.. + + + + + Looks up a localized string similar to Source must be a virtual path which should starts with "~/". + + + + + Looks up a localized string similar to Specified file does not exist: "{0}".. + + + + + Looks up a localized string similar to Passed string cannot be parsed to DateTime object.. + + + + + Looks up a localized string similar to Passed string cannot be parsed to TimeSpan object.. + + + + + Looks up a localized string similar to The specified method is not an action method.. + + + + + Looks up a localized string similar to Time should be bigger than MinTime and less than MaxTime.. + + + + + Looks up a localized string similar to You cannot set Url and ContentUrl at the same time.. + + + + + Looks up a localized string similar to The value '{0}' is invalid.. + + + + + Looks up a localized string similar to The Url of the WebService must be set. + + + + + Looks up a localized string similar to You cannot add more than once column when sort mode is set to single column.. + + + + + Looks up a localized string similar to You cannot use non generic BindTo overload without EnableCustomBinding set to true. + + + + + Looks up a localized string similar to You cannot call render more than once.. + + + + + Looks up a localized string similar to You cannot call Start more than once.. + + + + + Looks up a localized string similar to You cannot configure a shared web asset group.. + + + + + Looks up a localized string similar to You must have to call Start prior calling this method.. + + + + + Initializes a new instance of the class. + + The default path. + + + + Finds the group with the specified name. + + The name. + + + + + Finds the item with the specified source. + + The source. + + + + + Adds the specified source as . + + The item source. + + + + Adds the specified source as in the specified . + + Name of the group. + The item source. + + + + Inserts the specified source as at the specified index. + + The index. + The item source. + + + + Inserts the specified source as at the specified index in the specified . + + The index. + Name of the group. + The item source. + + + + Inserts an element into the at the specified index. + + The zero-based index at which should be inserted. + The object to insert. The value can be null for reference types. + + is less than zero. + -or- + is greater than . + + + + + Replaces the element at the specified index. + + The zero-based index of the element to replace. + The new value for the element at the specified index. The value can be null for reference types. + + is less than zero. + -or- + is greater than . + + + + + Gets or sets the default path. + + The default path. + + + + Gets the asset groups. + + The asset groups. + + + + Gets the asset items. + + The asset items. + + + + Defines the fluent interface for configuring web assets. + + + + + Initializes a new instance of the class. + + Type of the asset. + The assets. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal collection. + + + + + + Adds a new web asset + + The source. + + + <%= Html.Telerik().ScriptRegistrar() + .Scripts(scripts => scripts.Add("script1.js")) + %> + + + + + + Adds a new web asset group. + + The name. + The configure action. + + + <%= Html.Telerik().ScriptRegistrar() + .Scripts(scripts => scripts.AddGroup("Group1", group => + { + group.Add("script1.js"); + } + )) + %> + + + + + + Adds the specified shared group. + + The name. + + + <%= Html.Telerik().ScriptRegistrar() + .Scripts(scripts => scripts.AddShareGroup("SharedGroup1")) + %> + + + + + + Executes the provided delegate that is used to configure the group fluently. + + The name. + The configure action. + + + + Initializes a new instance of the class. + + The name. + if set to true [is shared]. + + + + Gets or sets the name. + + The name. + + + + Gets or sets a value indicating whether this instance is shared. + + true if this instance is shared; otherwise, false. + + + + Gets or sets the default path. + + The default path. + + + + Gets or sets a value indicating whether Telerik content delivery network would be used. + + + true if [use Telerik content delivery network]; otherwise, false. + + + + + Gets or sets the content delivery network URL. + + The content delivery network URL. + + + + Gets or sets a value indicating whether this is disabled. + + true if disabled; otherwise, false. + + + + Gets or sets the version. + + The version. + + + + Gets or sets a value indicating whether this is compress. + + true if compress; otherwise, false. + + + + Gets or sets the cache duration in days. + + The cache duration in days. + + + + Gets or sets a value indicating whether this is combined. + + true if combined; otherwise, false. + + + + Gets the items. + + The items. + + + + Class used to build initialization script of jQuery plugin. + + + + + Initializes a new instance of the class. + + The id. + The type. + The text writer. + + + + Starts writing this instance. + + + + + + Appends the specified key value pair to the end of this instance. + + The key value pair. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and nullable value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + The default value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + if set to true [value]. + + + + + Appends the specified name and value to the end of this instance. + + The name. + if set to true [value]. + if set to true [default value]. + + + + + Appends the specified name and only the date of the passed . + + The name. + The value. + + + + + Appends the specified name and only the date of the passed . + + The name. + The value. + + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The action. + + + + + Appends the specified name and value to the end of this instance. + + The name. + The action. + + + + + Appends the specified name and value to the end of this instance. + + The type of the enum. + The name. + The value. + + + + + Appends the specified name and value to the end of this instance. + + The type of the enum. + The name. + The value. + The default value. + + + + + + Completes this instance. + + + + + Defines members that a class must implement in order to provide helper methods for resolving relative path. + + + + + Returns the relative path for the specified virtual path. + + The URL. + + + + + HTMLHelper extension for providing access to . + + + + + Gets the Telerik View Component Factory + + The helper. + The Factory + + + + Gets the Telerik View Component Factory + + The helper. + The Factory + + + + Container of scriptable component. + + + + + Registers the specified component. + + The component. + + + + Defines members that a class must implement in order to act as wrapper for script, + + + + + Gets the on page load start. + + The on page load start. + + + + Gets the on page load end. + + The on page load end. + + + + Gets the on page unload start. + + The on page unload start. + + + + Gets the on page unload end. + + The on page unload end. + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The style sheet registrar. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal style sheet registrar. + + + + + + Sets the asset handler path. Path must be a virtual path. + + The value. + + + <%= Html.Telerik().StyleSheetRegistrar() + .AssetHandlerPath("~/asset.axd") + %> + + + + + + Configures the . + + The configure action. + + + <%= Html.Telerik().StyleSheetRegistrar() + .DefaultGroup(group => group + .Add("style1.css") + .Add("style2.css") + .Combined(true) + ) + %> + + + + + + Executes the provided delegate that is used to register the stylesheet files fluently. + + The configure action. + + + + + Renders the + + + + <% Html.Telerik().StyleSheetRegistrar() + .Render(); + %> + + + + + + Manages ASP.NET MVC views style sheet files. + + + + + Used to ensure that the same instance is used for the same HttpContext. + + + + + Initializes a new instance of the class. + + The style sheets. + The view context. + The asset merger. + + + + Writes the stylesheets in the response. + + + + + Writes all stylesheet source. + + The writer. + + + + Gets or sets the asset handler path. Path must be a virtual path. The default value is set to WebAssetHttpHandler.DefaultPath. + + The asset handler path. + + + + Gets or sets the default group. + + The default group. + + + + Gets the stylesheets that will be rendered in the view. + + The style sheets. + + + + Gets or sets the view context. + + The view context. + + + + Class used to resolve relative path for virtual path. + + + + + Returns the relative path for the specified virtual path. + + The URL. + + + + + Wrap the script for the jQuery ready/unload events. + + + + + Gets the on page load start. + + The on page load start. + + + + Gets the on page load end. + + The on page load end. + + + + Gets the on page unload start. + + The on page unload start. + + + + Gets the on page unload end. + + The on page unload end. + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The asset item group. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal group. + + + + + + Sets whether Telerik content delivery network would be used. + + if set to true [value]. + + + + + Sets the content delivery network URL. + + The value. + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.ContentDeliveryNetworkUrl("http://www.example.com")) + %> + + + + + + Enables or disables the group + + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.Enabled((bool)ViewData["enabled"])) + %> + + + + + + Sets the version. + + The value. + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.Version("1.1")) + %> + + + + + + Sets whether the groups will be served as compressed. By default asset groups are not compressed. + + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.Compress(true)) + %> + + + + + + Sets the caches the duration of this group. + + The value. + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.CacheDurationInDays(365)) + %> + + + + + + Sets whether the groups items will be served as combined. + + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.Combined(true)) + %> + + + + + + Sets the defaults path of the containing . + + The path. + + + + + Adds the specified source as . + + The value. + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group.Add("script1.js")) + %> + + + + + + Manages ASP.NET MVC javascript files and statements. + + + + + Used to ensure that the same instance is used for the same HttpContext. + + + + + Initializes a new instance of the class. + + The scripts. + The scriptable components. + The view context. + The asset merger. + The script wrapper. + + + + Registers the scriptable component. + + The component. + + + + Writes the scripts in the response. + + + + + Writes all script source and script statements. + + The writer. + + + + Gets the framework script file names. + + The framework script file names. + + + + Gets the validation script file names. + + The validation script file names. + + + + Gets or sets a value indicating whether [exclude framework scripts]. + + + true if [exclude framework scripts]; otherwise, false. + + + + + Gets or sets a value indicating whether [exclude validation scripts]. + + + true if [exclude validation scripts]; otherwise, false. + + + + + Gets or sets the asset handler path. Path must be a virtual path. The default value is set to . + + The asset handler path. + + + + Gets the default script group. + + The default group. + + + + Gets or sets a value indicating whether [enable globalization]. + + true if [enable globalization]; otherwise, false. + + + + Gets the scripts that will be rendered in the view. + + The scripts. + + + + Gets the on document ready actions. + + The on page load actions. + + + + Gets the on document ready statements that is used in RenderAction. + + The on page load actions. + + + + Gets the on window unload actions. + + The on page unload actions. + + + + Gets the on window unload statements.that is used in RenderAction. + + The on page load actions. + + + + Gets the view context. + + The view context. + + + + Gets the script wrapper that is used to write the script statements. + + The script wrapper. + + + + Defines the fluent interface for configuring the component. + + + + + Initializes a new instance of the class. + + The script registrar. + + + + Performs an implicit conversion from to . + + The builder. + The result of the conversion. + + + + Returns the internal script registrar. + + + + + + Sets the asset handler path. Path must be a virtual path. + + The value. + + + <%= Html.Telerik().ScriptRegistrar() + .AssetHandlerPath("~/asset.axd") + %> + + + + + + Configures the . + + The configure action. + + + <%= Html.Telerik().ScriptRegistrar() + .DefaultGroup(group => group + .Add("script1.js") + .Add("script2.js") + .Combined(true) + ) + %> + + + + + + Enables globalization support. + + if set to true [enable]. + + + <%= Html.Telerik().ScriptRegistrar() + .Globalization(true) + %> + + + + + + Includes the jQuery script files. By default jQuery JavaScript is included. + + + Telerik Extensions for ASP.NET MVC require jQuery so make sure you manually include the JavaScript file + if you disable the automatic including. + + if set to true [enable]. + + + <%= Html.Telerik().ScriptRegistrar() + .jQuery(false) + %> + + + + + + Sets whether the jQuery validation script files will be registered. By default jQuery Validation JavaScript is included, if needed. + + + Telerik Extensions for ASP.NET MVC use jQuery validation + + if set to true [enable]. + + + <%= Html.Telerik().ScriptRegistrar() + .jQueryValidation(false) + %> + + + + + + Executes the provided delegate that is used to register the script files fluently in different groups. + + The configure action. + + + + + Defines the inline handler executed when the DOM document is ready (using the $(document).ready jQuery event) + + The action defining the inline handler + + + <% Html.Telerik().ScriptRegistrar() + .OnDocumentReady(() => + { + %> + function() { + alert("Document is ready"); + } + <% + }) + .Render(); + %> + + + + + + Defines the inline handler executed when the DOM document is ready (using the $(document).ready jQuery event) + + The code of the inline handler wrapped in a text tag (Razor syntax) + + + @(Html.Telerik().ScriptRegistrar() + .OnDocumentReady( + @<text> + alert("Document is ready"); + </text> + }) + ) + + + + + + Appends the specified statement in $(document).ready jQuery event. This method should be + used in Html.RenderAction(). + + The statements. + + + + + Defines the inline handler executed when the DOM window object is unloaded. + + The action defining the inline handler + + + <% Html.Telerik().ScriptRegistrar() + .OnWindowUnload(() => + { + %> + function() { + // event handler code + } + <% + }) + .Render(); + %> + + + + + + Appends the specified statement window unload event. This method should be + used in Html.RenderAction(). + + The statements. + + + + + Renders the + + + + <% Html.Telerik().ScriptRegistrar() + .Render(); + %> + + + + + + Web asset types. + + + + + None, used for internal purpose. + + + + + Stylesheet + + + + + Javascript + + + +