<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="cc1" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title></title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
<telerik:RadChart ID="testPlot" runat="Server" Width="700px"
AutoLayout="True" Skin="Office2007"
DefaultType="Line">
<PlotArea>
<XAxis>
<Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">
<MajorGridLines PenStyle="Solid" Color="209, 222, 227" Width="0"></MajorGridLines>
<TextAppearance TextProperties-Color="51, 51, 51"></TextAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="Black"></Appearance>
</TextBlock>
</AxisLabel>
</XAxis>
<YAxis>
<Appearance Color="134, 134, 134" MinorTick-Color="134, 134, 134" MinorTick-Width="0" MajorTick-Color="134, 134, 134">
<MajorGridLines Color="209, 222, 227"></MajorGridLines>
<MinorGridLines Color="233, 239, 241"></MinorGridLines>
<TextAppearance TextProperties-Color="51, 51, 51"></TextAppearance>
</Appearance>
<AxisLabel>
<TextBlock Text="">
<Appearance TextProperties-Color="Black"></Appearance>
</TextBlock>
</AxisLabel>
</YAxis>
<Appearance>
<FillStyle MainColor="White" FillType="Solid"></FillStyle>
<Border Color="134, 134, 134"></Border>
</Appearance>
</PlotArea>
<Appearance Corners="Round, Round, Round, Round, 6">
<FillStyle FillType="Image">
<FillSettings ImageDrawMode="Flip" BackgroundImage="{chart}" ImageFlip="FlipX"></FillSettings>
</FillStyle>
<Border Color="138, 138, 138"></Border>
</Appearance>
<Series>
<cc1:ChartSeries Name="Series 1" Type="Line">
<Appearance>
<FillStyle MainColor="55, 167, 226" SecondColor="22, 85, 161" FillType="Solid">
<FillSettings GradientMode="Vertical"></FillSettings>
</FillStyle>
<PointMark Visible="True" Figure="Circle" FillStyle-MainColor="Red" FillStyle-SecondColor="Red" Dimensions-Height="5px" Dimensions-Width="5px" Dimensions-AutoSize="false">
<
FillStyle MainColor="Red" SecondColor="Red"></FillStyle>
</PointMark>
<TextAppearance TextProperties-Color="Black"></TextAppearance>
<Border Color="69, 115, 167" />
</Appearance>
</cc1:ChartSeries>
</Series>
<Legend Visible="false">
<Appearance Visible="False" Position-AlignedPosition="TopRight" Dimensions-Margins="15.4%, 3%, 1px, 1px"
Dimensions-Paddings="2px, 8px, 6px, 3px">
<ItemTextAppearance TextProperties-Color="Black">
</ItemTextAppearance>
<ItemMarkerAppearance Figure="Square">
<Border Color="134, 134, 134"></Border>
</ItemMarkerAppearance>
<FillStyle MainColor=""></FillStyle>
<Border Color="Transparent"></Border>
</Appearance>
</Legend>
<ChartTitle TextBlock-Text="">
<Appearance Position-AlignedPosition="Top">
<FillStyle MainColor=""></FillStyle>
</Appearance>
<TextBlock Text="">
<Appearance TextProperties-Font="Tahoma, 13pt" TextProperties-Color="Black"></Appearance>
</TextBlock>
</ChartTitle>
</telerik:RadChart>
</div>
</form>
</
body>
</
html>
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Data;
using
Telerik.Charting;
using
Telerik.Web.UI;
using
System.Web.UI.DataVisualization.Charting;
public
partial class Default4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
DataTable deviceTable = new DataTable();
deviceTable.Columns.Add(
new DataColumn("Date"));
deviceTable.Columns.Add(
new DataColumn("Value"));
DataRow newRow = deviceTable.NewRow();
newRow[
"Date"] = "6/29/2010";
newRow[
"Value"] = "Version 1.59.25.2";
deviceTable.Rows.Add(newRow);
DataRow newRow1 = deviceTable.NewRow();
newRow1[
"Date"] = "6/30/2010";
newRow1[
"Value"] = "Version 1.59.25.3";
deviceTable.Rows.Add(newRow1);
DataRow newRow2 = deviceTable.NewRow();
newRow2[
"Date"] = "7/01/2010";
newRow2[
"Value"] = "Version 1.59.25.4";
deviceTable.Rows.Add(newRow2);
testPlot.DataSource = deviceTable;
testPlot.PlotArea.XAxis.DataLabelsColumn =
"Date";
testPlot.Series[0].DataYColumn =
"Value";
testPlot.DataBind();
testPlot.Visible =
true;
testPlot.PlotArea.YAxis.AxisLabel.Visible =
true;
testPlot.PlotArea.XAxis.AxisLabel.Visible =
true;
testPlot.PlotArea.XAxis.AxisLabel.TextBlock.Text =
"Date";
}
}
}
| <asp:TemplateColumn> |
| <ItemTemplate> |
| <asp:ImageButton runat="server" ToolTip="Click to move this row up" ImageUrl="~/App_Themes/WEBSWAPP/images/up.gif" |
| ID="btnUp" CommandName="MoveUp" /> |
| <asp:ImageButton runat="server" ToolTip="Click here to move this row down" ImageUrl="~/App_Themes/WEBSWAPP/images/down.gif" |
| ID="ImageButton1" CommandName="MoveDown" /> |
| </ItemTemplate> |
| </asp:TemplateColumn> |
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0">
<Tabs>
<telerik:RadTab runat="server" Selected="True" Text="test">
<TabTemplate>
<asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox>
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
</TabTemplate>
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim rad As TextBox = RadTabStrip1.FindControl("TextBox1")
Response.Write(rad.Text)
End Sub
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadScriptBlock ID="rsb" runat="server">
<script type ="text/javascript">
function rttPromptShow(sender, eventArgs) {
setTimeout(
function() {
var txt = $get("<%=txtTest.ClientID %>");
try {
if (txt)
txt.focus();
}
catch (e) { };
}, 500);
}
</script>
</telerik:RadScriptBlock>
<div>
<asp:Button ID="btnTeset" runat="server" Text="Show Tool Tip" />
<telerik:RadToolTip ID="rttPrompt" runat="server" Modal="true"
Position="Center" OnClientShow="rttPromptShow"
ShowEvent="FromCode" HideEvent="FromCode" Width="300px" Height="150px">
<telerik:RadTextBox ID="txtTest" runat="server" Text="Test">
</telerik:RadTextBox>
</telerik:RadToolTip>
</div>
</form>
</
body>
and here is the code behind:
Protected Sub btnTeset_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnTeset.Click
Call rttPrompt.Show()
End Sub
I would also like the text in the text box to be selected.
Any help would be greatly appreciated.
Kevin
| <telerik:RadAjaxLoadingPanel runat="server" ID="progressLoader" MinDisplayTime="1500" InitialDelayTime="1000" Skin="Default"></telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel runat="server" ID="rap_panel1" LoadingPanelID="progressLoader" EnableViewState="true" EnableEmbeddedScripts="true" EnableAJAX= "True" > <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="Vertical" ShowGroupPanel="True" PageSize="5" AllowSorting="true" AllowPaging="true" AutoGenerateColumns="false" EnableHeaderContextMenu="true" Skin="Default" > <ExportSettings> <Pdf FontType="Subset" PaperSize="A4" /> <Excel Format="Html" /> <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" /> </ExportSettings> <MasterTableView DataKeyNames="ROWCLICK" GroupLoadMode="Client" CommandItemDisplay="Top"> <PagerStyle Mode="NextPrevNumericAndAdvanced" /> <%-- <CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowExportToPdfButton="true" ShowExportToWordButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />--%> <CommandItemTemplate> <asp:LinkButton ID="btn_save" runat="server" CommandName="saveGrid" ><asp:Image runat="server" ID="img_save" ImageUrl="~/_resources/images/icons/tick.png"/></asp:LinkButton> <asp:LinkButton ID="btn_excel" runat="server" CommandName="excel" ><asp:Image runat="server" ID="Image1" ImageUrl="~/_resources/images/icons/xls_grey.gif"/></asp:LinkButton> </CommandItemTemplate> </MasterTableView> <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True" EnablePostBackOnRowClick="true" AllowGroupExpandCollapse="true"> <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False"> </Resizing> </ClientSettings> </telerik:RadGrid> </telerik:RadAjaxPanel> |