or
<
script
type
=
"text/javascript"
>
function RowDoubleClick(index) {
__doPostBack("<%= grdDashboards.UniqueId %>", "RowDblClicked:" + this.Rows[index].ItemIndex);
}
</
script
>
<
telerik:RadGrid
ID
=
"grdDashboards"
runat
=
"server"
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
>
<
ClientEvents
OnRowDblClick
=
"RowDoubleClick"
></
ClientEvents
>
</
ClientSettings
>
</
telerik:RadGrid
>
Protected
Overrides
Sub
RaisePostBackEvent(
ByVal
source
As
IPostBackEventHandler,
ByVal
eventArgument
As
String
)
MyBase
.RaisePostBackEvent([source], eventArgument)
If
([source]
Is
grdDashboards)
And
(eventArgument.IndexOf(
"RowDblClicked"
) <> -1)
Then
Dim
item
As
GridDataItem = grdDashboards.Items(
Integer
.Parse(eventArgument.Split(
":"
c)(1)))
Response.Write([
String
].Format(
"ReportID:{0}"
, item.GetDataKeyValue(
"ReportID"
)))
End
If
End
Sub
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"MainContent"
runat
=
"server"
>
<%-- register the RadWindow for the Advanced Editing --%>
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindowAdvEditor"
NavigateUrl
=
"~/RegisterPro/radeditorwindow.aspx"
EnableEmbeddedBaseStylesheet
=
"true"
VisibleTitlebar
=
"true"
OnClientShow
=
"SetDialogContent"
OnClientPageLoad
=
"SetDialogContent"
Behaviors
=
"Maximize,Close,Move"
Width
=
"800px"
Modal
=
"true"
Height
=
"700px"
/>
<
fieldset
id
=
"FieldSetMain"
class
=
"ui-widget ui-widget-content ui-corner-all"
style
=
"padding: 10px; width: 960px;"
>
<
legend
id
=
"LegendEventManager"
class
=
"ui-widget-header ui-corner-all"
> Events Manager </
legend
>
<%-- Grid for add/edit/delete events (master and sub) --%>
<
div
style
=
"float: left;"
>
<%-- script for the RadWindow --%>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlockEditor"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
//![CDATA[
var myEditorContent = null;
var myMessageType = "CommandExecute?";
var myEditor;
jQuery(function () {
if (typeof (RadEditorCommandList) != "undefined") {
Telerik.Web.UI.Editor.CommandList["RichEditor"] = function (commandName, editor, args) {
myEditor = editor; // set editor object so we can use it from window return - SetEditorContent
myEditorContent = editor.get_html(true); //get RadEditor content
$find("<%= RadWindowAdvEditor.ClientID%>").show(); //open RadWindow
}
}
})
function SetEditorContent(content) {
//set content to RadEditor on the main page from RadWindow
myEditor.set_html(content);
}
function SetDialogContent(oWnd) {
var myContentWindow = oWnd.get_contentFrame().contentWindow;
if (myContentWindow && myContentWindow.setContent) {
window.setTimeout(function () {
//pass and set the content from the mane page to RadEditor in RadWindow
myContentWindow.setContent(myEditorContent);
}, 500);
}
}
<
telerik:RadGrid
runat
=
"server"
ID
=
"RadGridEventMaster"
Height
=
"100%"
Width
=
"97%"
AllowMultiRowSelection
=
"false"
AutoGenerateColumns
=
"True"
ShowHeader
=
"False"
AllowAutomaticUpdates
=
"false"
AllowAutomaticInserts
=
"false"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
NoMasterRecordsText
=
"There are no events to display..."
DataKeyNames
=
"EventMasterId"
EditMode
=
"EditForms"
AllowAutomaticUpdates
=
"false"
AllowAutomaticInserts
=
"false"
>
<
CommandItemTemplate
>
<%-- Edit form master event template --%>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"RadGridEventSub"
Height
=
"100%"
Width
=
"100%"
AllowMultiRowSelection
=
"false"
AutoGenerateColumns
=
"false"
OnItemCommand
=
"RadGridEventSub_ItemCommand"
OnDeleteCommand
=
"RadGridEventSub_DeleteCommand"
OnInsertCommand
=
"RadGridEventSub_InsertCommand"
OnUpdateCommand
=
"RadGridEventSub_UpdateCommand"
OnNeedDataSource
=
"RadGridEventSub_NeedDataSource"
OnItemDataBound
=
"RadGridEventSub_ItemDataBound"
OnItemCreated
=
"RadGridEventSub_ItemCreated"
AllowAutomaticUpdates
=
"true"
AllowAutomaticInserts
=
"true"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
NoMasterRecordsText
=
"There are no events to display..."
DataKeyNames
=
"EventMasterId, EventSubId, GroupId, Name, EventTypeId, BoardPositionId"
EditMode
=
"EditForms"
>
<
CommandItemSettings
AddNewRecordText
=
"Add a new sub event"
ShowRefreshButton
=
"false"
/>
<
div
>
<
telerik:RadEditor
runat
=
"server"
ID
=
"RadEditorEmailNotificationMsg"
ToolsWidth
=
"100%"
Height
=
"200px"
Width
=
"100%"
EnableResize
=
"false"
ContentAreaMode
=
"Div"
Content='<%# Eval("EmailNotificationMsg") %>'>
<
Tools
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"RichEditor"
Text
=
"Open Advanced Editor"
/>
<
telerik:EditorTool
Name
=
"Bold"
/>
<
telerik:EditorTool
Name
=
"Italic"
/>
<
telerik:EditorTool
Name
=
"Underline"
/>
<
telerik:EditorTool
Name
=
"Cut"
/>
<
telerik:EditorTool
Name
=
"Copy"
/>
<
telerik:EditorTool
Name
=
"Paste"
/>
<
telerik:EditorTool
Name
=
"FontName"
/>
<
telerik:EditorTool
Name
=
"RealFontSize"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
</
telerik:RadEditor
>
</
div
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
<%-- Edit form template --%>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
telerik:RadHtmlChart
runat
=
"server"
ID
=
"RadHtmlChart1"
Height
=
"550px"
Style
=
"left: 10px; right: 10px;"
>
<
PlotArea
>
<
Series
>
<
telerik:ColumnSeries
DataFieldY
=
"AcumuladoAnt"
Name="<%$Resources:htmlChartAnterior %>" >
<
LabelsAppearance
DataFormatString
=
"{0:#}"
></
LabelsAppearance
>
</
telerik:ColumnSeries
>
<
telerik:ColumnSeries
DataFieldY
=
"AcumuladoAct"
Name="<%$Resources:htmlChartActual %>">
<
LabelsAppearance
DataFormatString
=
"{0:#}"
></
LabelsAppearance
>
</
telerik:ColumnSeries
>
</
Series
>
<
XAxis
DataLabelsField
=
"Mes"
>
<
TitleAppearance
Text="<%$Resources:htmlChartMes %>">
<
TextStyle
Margin
=
"20"
/>
</
TitleAppearance
>
<
MajorGridLines
Visible
=
"false"
/>
<
MinorGridLines
Visible
=
"false"
/>
</
XAxis
>
<
YAxis
>
<
TitleAppearance
Text="<%$Resources:htmlChartImporte %>">
<
TextStyle
Margin
=
"20"
/>
</
TitleAppearance
>
<
MinorGridLines
Visible
=
"false"
/>
</
YAxis
>
</
PlotArea
>
<
ChartTitle
Text="<%$Resources:htmlChartTitle %>">
</
ChartTitle
>
<
Legend
>
<
Appearance
BackgroundColor
=
"White"
Position
=
"Bottom"
>
<
TextStyle
Bold
=
"false"
FontFamily
=
"Helvetica"
Italic
=
"false"
Color
=
"Black"
FontSize
=
"12"
Margin
=
"0"
Padding
=
"0"
/>
</
Appearance
>
</
Legend
>
</
telerik:RadHtmlChart
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
FilterControlAltText
=
"Filter EditCommandColumn1 column"
> </
EditColumn
>
<
FormTemplate
>
<
table
>
<
tr
>
<
td
> </
td
>
<
td
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Margins:"
></
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
Text='<%# Bind( "margins" ) %>'></
asp:TextBox
>