or
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
runat="server"
VisibleOnPageLoad="false"
Width="894px"
Modal="true"
Behaviors="None"
EnableEmbeddedSkins="false"
EnableShadow="true"
OnClientClose="OnClientClose"
ReloadOnShow="false">
<
Windows
>
<
telerik:RadWindow
ID
=
"radPopup"
runat
=
"server"
KeepInScreenBounds
=
"true"
EnableShadow
=
"true"
/>
</
Windows
>
</
telerik:RadWindowManager
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"radgrid"
AutoGenerateColumns
=
"false"
OnNeedDataSource
=
"radgrid_NeedDataSource"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridTemplateColumn
DataField
=
"Text"
HeaderText
=
"foo"
>
<
ItemTemplate
>
<%# Eval("Text") %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"Text"
HeaderText
=
"bar"
Visible
=
"false"
/>
<
telerik:GridEditCommandColumn
HeaderText
=
"Edit"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
//OADate column for chart:
DataColumn col =
new
DataColumn(
"OADate"
,
typeof
(System.Double));
dtable.Columns.Add(col);
//Converting SQL Datetime values to OADate column
int
b = 0;
foreach
(DataRow row
in
dtMerArrCru.Rows)
{
row[
"OADate"
] = Convert.ToDateTime(dtable.Rows[b][1]).ToOADate();
b++;
}
//Formatting chart:
RadChart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;
RadChart1.PlotArea.XAxis.Appearance.CustomFormat =
"MM/dd/yyyy"
;
RadChart1.PlotArea.XAxis.IsZeroBased =
false
;
RadChart1.PlotArea.XAxis.AutoScale =
false
;
RadChart1.PlotArea.XAxis.AddRange(Convert.ToDouble(dtMerArrCru.Rows[0][
"OADate"
]), Convert.ToDouble(dtMerArrCru.Rows[dtMerArrCru.Rows.Count - 1][
"OADate"
]), 1);
RadChart1.DataGroupColumn =
"Type"
;
RadChart1.DataManager.ValuesXColumn =
"OADate"
;
RadChart1.DataManager.ValuesYColumns =
new
string
[] {
"Quantity"
};
RadChart1.DataSource = dtable;
RadChart1.DataBind();
<
telerik:GridTemplateColumn
DataField
=
"Translation2"
AutoPostBackOnFilter
=
"true"
ShowFilterIcon
=
"false"
UniqueName
=
"ForeignTranslation"
AllowFiltering
=
"true"
FilterControlWidth
=
"200px"
HeaderText
=
"Translation2"
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"txtTranslationText"
AutoPostBack
=
"true"
runat
=
"server"
Height
=
"44px"
OnTextChanged
=
"txtTranslationText_TextChanged"
TextMode
=
"MultiLine"
></
asp:TextBox
>
</
ItemTemplate
>
<
HeaderStyle
Width
=
"200px"
/>
</
telerik:GridTemplateColumn
>