This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<telerik:RadHtmlChart runat="server" Width="800px" Height="500px"> | |
<Appearance> | |
<FillStyle BackgroundColor="LightGray" /> | |
</Appearance> | |
<ChartTitle Text="Server CPU Load By Days"> | |
<Appearance Align="Center" BackgroundColor="White" | |
Position="Top" /> | |
</ChartTitle> | |
<Legend> | |
<Appearance BackgroundColor="White" Position="Bottom" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[contacts] | |
( | |
[Id] [int] IDENTITY(1,1) NOT NULL, | |
[Name] [varchar](50) NOT NULL, | |
CONSTRAINT [PK_contacts] PRIMARY KEY CLUSTERED | |
( | |
[Id] ASC | |
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | |
) ON [PRIMARY] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uriReportSource = new UriReportSource(); | |
uriReportSource.Uri = "<URI of .TRDX file>"; | |
reportViewer.ReportSource = uriReportSource; | |
reportViewer.RefreshReport(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Report DataSourceName="ReportDataSource" Width="6.45833333333333in" Name="DemoReport" xmlns="http://schemas.telerik.com/reporting/2012/2"> | |
<DataSources> | |
<SqlDataSource ConnectionString="stagingdb1" SelectCommand="select * from contacts" Name="ReportDataSource" /> | |
</DataSources> | |
<Items> | |
<PageHeaderSection Height="0.28125in" Name="pageHeader"> | |
<Items> | |
<TextBox Value="DemoReport" Size="6.41666666666667in, 0.200000027815501in" Location="0.0208333333333333in, 0.0208333333333333in" Name="reportNameTextBox" StyleName="PageInfo" /> | |
</Items> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XmlReportSource xmlReportSource = new XmlReportSource(); | |
xmlReportSource.Xml = "<Contents of .TRDX file>"; | |
reportViewer.ReportSource = xmlReportSource; | |
reportViewer.RefreshReport(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XmlReaderSettings settings = new XmlReaderSettings(); | |
settings.IgnoreWhitespace = true; | |
using (XmlReader xmlReader = XmlReader.Create(<.TRDX URI or .TRDX XML Content>, settings)) | |
{ | |
Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = | |
new Telerik.Reporting.XmlSerialization.ReportXmlSerializer(); | |
Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader); | |
(report.DataSource as SqlDataSource).ConnectionString = "<Connection String OR Connection String Name>"; | |
reportViewer.Report = report; | |
reportViewer.RefreshReport(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(Html.Kendo().Chart() | |
.Name("Chart1") | |
.Title("Internet Users") | |
.Legend(configurator => | |
{ | |
configurator.Position(ChartLegendPosition.Right); | |
}) | |
.Series(series => | |
{ | |
series.Column(chartData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DefaultProperty("Text")] | |
[ToolboxData("<{0}:Html5TextBox runat=server></{0}:Html5TextBox>")] | |
public class Html5TextBox : TextBox | |
{ | |
string _placeholder = "enter value"; | |
[Bindable(true)] | |
[Category("Appearance")] | |
[DefaultValue("enter value")] | |
[Localizable(true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type=”text” | |
name=”txtFirstName” id=”txtFirstName” | |
placeholder=”enter first name” /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DefaultProperty("Text")] | |
[ToolboxData("<{0}:Html5TextBox runat=server></{0}:Html5TextBox>")] | |
public class Html5TextBox : TextBox | |
{ | |
} |
OlderNewer