diff --git a/Libraries/Telerik/Telerik.Web.Mvc.dll b/Libraries/Telerik/Telerik.Web.Mvc.dll index 90715390b..819473d0c 100644 Binary files a/Libraries/Telerik/Telerik.Web.Mvc.dll and b/Libraries/Telerik/Telerik.Web.Mvc.dll differ diff --git a/Libraries/Telerik/Telerik.Web.Mvc.xml b/Libraries/Telerik/Telerik.Web.Mvc.xml index 9ec4fa879..830dfeed3 100644 --- a/Libraries/Telerik/Telerik.Web.Mvc.xml +++ b/Libraries/Telerik/Telerik.Web.Mvc.xml @@ -658,6 +658,3658 @@ + + + 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. + + + + + 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. + + + + + 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 value at which the first perpendicular axis crosses this axis + + + + + 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 value at which the first perpendicular axis crosses this axis + + + + + The interval between major divisions + + + + + The axis label format + + + + + 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 the chart series. + + + + + Gets the default settings for all series. + + + + + Configuration for the default category axis (if any) + + + + + Configuration for the default value axis + + + + + Gets the data binding configuration. + + + + + Gets or sets the series colors. + + + + + 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 + + + + + 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 Verdana, 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 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 Verdana, sans-serif". + + + + + 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 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. + + + + + 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. + + + + + 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 shape of the marker. + + + + + The marker shape is square. + + + + + The marker shape is triangle. + + + + + The marker shape is circle. + + + + + 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 fluent interface for configuring bar 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. + + + + Sets a value indicating if the lines should be stacked. + + A value indicating if the bars 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(); + %> + + + + + + 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); + ) + %> + + + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Defines the fluent interface for configuring the chart data labels. + + + + + Initializes a new instance of the class. + + The data labels configuration. + + + + Sets the data labels font + + The data labels font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Font("14px Verdana, 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 data 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 data 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 data labels top margin. + The data labels right margin. + The data labels top margin. + The data labels top 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 data 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 data labels top padding. + The data labels right padding. + The data labels top padding. + The data labels top 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 data 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 data labels border width. + The data labels border color (CSS syntax). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Border(1, "Red") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Sets the labels format + + The data labels format. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Bar(s => s.Sales) + .Labels(labels => labels + .Format("{0:C}") + .Visible(true); + ); + ) + .Render(); + %> + + + + + + Initializes a new instance of the class. + + The data labels configuration. + + + + Sets the labels position + + The data labels position. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Labels(labels => labels + .Position(ChartLineLabelsPosition.Above) + .Visible(true) + ); + ) + .Render(); + %> + + + + + + 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). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series + .Line(s => s.Sales) + .Markers(markers => markers + .Border(1, "Red") + ); + ) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The chart 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 top margin. + The plot area top 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). + + + <% Html.Telerik().Chart() + .Name("Chart") + .PlotArea(plotArea => plotArea.Border(1, "#000")) + .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 data 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 top margin. + The chart area top 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). + + + <% Html.Telerik().Chart() + .Name("Chart") + .ChartArea(chartArea => chartArea.Border(1, "#000")) + .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. + + + + + Represents the options of the bar chart labels + + + + + Represents the options of the chart data labels + + + + + 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 Verdana, 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. + + + + + 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 position chart title + + + + + The title is positioned on the top + + + + + The title is positioned on the bottom + + + + + 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 of axis ticks + + + + + The tick is drawn on the outer side of the axis + + + + + No tick is drawn + + + + + 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 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 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 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") + ) + %> + + + + + + 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") + ) + %> + + + + + + 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") + ) + %> + + + + + + Gets or sets the axis. + + The axis. + + + + 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 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") + .ValueAxis(a => a.Numeric().AxisCrossingValue(4)) + %> + + + + + + Sets the axis labels format + + The axis labels format. + + + <%= Html.Telerik().Chart(Model) + .Name("Chart") + .ValueAxis(a => a.Numeric().Format("{0:C}")) + %> + + + + + + 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 Verdana, sans-serif")) + .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 top margin. + The title top 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 top padding. + The title top 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. + + + <% Html.Telerik().Chart() + .Name("Chart") + .Title(title => title.Border(1, "#000")) + .Render(); + %> + + + + + + Defines the fluent interface for configuring the . + + + + + Initializes a new instance of the class. + + The chart legend. + + + + Sets the legend font + + The legend font (CSS format). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Font("16px Verdana, sans-serif")) + .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 top 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 top padding. + The legend top 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). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Legend(legend => legend.Border(1, "#000")) + .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 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)) + %> + + + + + + 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)) + %> + + + + + + 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") + %> + + + + + + 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 + + + + + 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)) + %> + + + + + + + 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). + + + <% Html.Telerik().Chart() + .Name("Chart") + .Series(series => series.Bar(s => s.Sales).Border("1", "#000")) + .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 + + + + + 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 + + + + + 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 + + + + + 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. + + + + + Represents the options of the line 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. + + + + + 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. + + + + + 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. + + + + + Defines the available bar series effects overlays + + + + + The bars have no effect overlay + + + + + The bars have glass effect overlay + + + + + 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. @@ -825,6 +4477,30 @@ + + + Sets the HTML attributes of the hidden input element. + + The HTML attributes. + + + + Sets the HTML attributes of the hidden input element. + + The HTML attributes. + + + + 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. @@ -2004,9 +5680,10 @@ Enables or disables the dropdownlist. - + + Initializes a new instance of the class. @@ -2649,10 +6326,10 @@ Defines the inline handler of the OnLoad client-side event - The handler code wrapped in a text tag (Razor syntax). + The handler code wrapped in a text tag (Razor syntax). - <% Html.Telerik().Editor() + @(Html.Telerik().Editor() .Name("Editor") .ClientEvents(events => events.OnLoad( @<text> @@ -2660,9 +6337,7 @@ //event handling code } </text> - )) - .Render(); - %> + ))) @@ -2680,6 +6355,62 @@ + + + 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 @@ -3003,6 +6734,647 @@ Builder, which sets different slide properties. + + + 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 + + + + + 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. + + Sets the button type. @@ -6823,612 +11195,6 @@ The command. - - - 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())); - }) - %> - - - Defines the fluent interface for configuring the data binding. @@ -7544,6 +11310,14 @@ + + + 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. @@ -11476,18 +15250,7 @@ The user can sort by more than one column at the same time. - - - Telerik Grid for ASP.NET MVC is a view component for presenting tabular data. - It supports the following features: - - Flexible databinding - server, ajax and web service - Paging, sorting and filtering - Light HTML and JavaScript footprint - - - The type of the data item which the grid is bound to. - + Initializes a new instance of the class. @@ -11502,6 +15265,11 @@ Gets the selection configuration + + + Gets the template which the grid will use to render a row + + Gets the client events of the grid. @@ -11528,6 +15296,11 @@ Gets the scrolling configuration. + + + Gets the keyboard navigation configuration. + + Gets the ajax configuration. @@ -11593,6 +15366,60 @@ 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 @@ -12056,6 +15883,51 @@ + + + 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)); + %> + + + Configures the client-side events. @@ -12411,6 +16283,22 @@ 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. @@ -14437,21 +18325,11 @@ Contains CSS classes, used in the window - - - Window buttons class - - Window content area - - - Window icon - - Window title bar @@ -15981,11 +19859,66 @@ <%= Html.Telerik().Upload() - .Upload("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"); + }) %> @@ -17771,6 +21704,11 @@ 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.. @@ -17850,6 +21788,11 @@ 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.. @@ -17910,6 +21853,11 @@ 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.. @@ -17930,6 +21878,11 @@ 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.. @@ -18848,6 +22801,12 @@ 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]. @@ -18856,6 +22815,14 @@ 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 . @@ -18988,7 +22955,7 @@ 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 JavaScrip file + 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]. @@ -19000,6 +22967,22 @@ + + + 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. diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index ddec906b4..bc9325ee7 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -5,8 +5,8 @@ NZBDrone - - + +