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><asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind( "valuePCS" ) %>'></asp:TextBox><asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind( "valuePCS", "{0:C0}" ) %>'></asp:TextBox>[FormatException: Formato della stringa di input non corretto.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10896279 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +145 System.String.System.IConvertible.ToInt32(IFormatProvider provider) +46 System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider) +297 System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +126 System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +63 System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString) +535 System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +324 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +87 Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind) +430 Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +2063 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +205 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) +372 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +114 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +252 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724