or
| Protected Sub rgResidentAdmin_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles rgResidentAdmin.ItemCommand |
| If (e.CommandName = RadGrid.InitInsertCommandName) Then |
| e.Canceled = True |
| Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() |
| newValues("ResIndic") = "1" |
| e.Item.OwnerTableView.InsertItem(newValues) |
| End If |
| End Sub |
| <radG:GridTemplateColumn DataField="ResIndic" HeaderText="Active" UniqueName="ResIndic" AllowFiltering="False"> |
| <ItemTemplate> |
| <asp:CheckBox ID="cbResIndic" runat="server" Enabled="false" /> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:CheckBox ID="ResIndicCB" runat="server" Checked='<%# Bind("ResIndic")%>' /> |
| </EditItemTemplate> |
| </radG:GridTemplateColumn> |

Server Error in '/' Application. -------------------------------------------------------------------------------- Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.] System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +8627289 System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +72 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +35 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) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618<telerik:RadWindow runat="server" ID="dlgEditPage" Modal="true" AutoSize="true" Width="506" MaxWidth="510" Top="50" Height="258" MaxHeight="260"><br> <ContentTemplate><br> <div id="EditTitle"><br><br> <div class="creat-survey-link-main" style="width:500px;"><br> <div><br> <div class="header-secondtop-line border-grey"></div><br> <div class="creat-survey-link-header-main" style="width:500px;"><br> <h3 class="creat-survey-link-green-heading float-lt" style="color:#405d0b;">Edit Page</h3><br> <div class="float-rt creat-survey-link-close" onclick="javascript:CloseRadWindow()" > <a href="javascript:void(0)"> <img src="../images/Close_icon.png" class="float-lt" /><br> <div class="float-lt" style="margin-top:2px; margin-left:2px;">Close</div><br> </a><br> <div class="clear"></div><br> </div><br> <div class="clear"></div><br> <div style="padding:20px 30px; background:#fff"><br> <div><br> <div class="title float-lt" style="padding:5px; width:80px; text-align:left;">Page Title:</div><br> <div class="float-lt"><input type="text" value="Change Your Title Here" style="width:200px;" /></div><br> <div class="clear"></div><br> </div><br> <div class="marTop"><br> <div class="title float-lt" style="padding:5px; width:80px; text-align:left;">Page Description:</div><br> <div class="float-lt"><textarea type="text" style="width:330px;">Change Your Title Here </textarea></div><br> <div class="clear"></div><br> </div> <br> <div class="clear"></div> <br> <br> <div style="float:left; margin:20px 0px 0px 90px;"><br> <div class="creat-folder-button-curve"><img src="../images/Save.png" style="padding-left:25px;" class="float-lt" width="16" /> <strong style="font-size:14px; padding:0px 10px; display:block; float:left;">Save</strong></div><br> <div class="creat-folder-button-curve" onclick="javascript:CloseRadWindow()"><img src="../images/close.png" style="padding-left:20px;" class="float-lt" width="16" /> <strong style="font-size:14px; padding:0px 10px; display:block; float:left;">Cancel</strong></div><br> </div><br> <div class="clear"></div> <br> </div><br> <br> <br> </div> <br> </div><br> </div><br><br> </div><br> </ContentTemplate><br> </telerik:RadWindow><cs:GlobalSettingsRadWindow ID="DashboardGlobalSettingsWindow" Runat="Server" > <ContentTemplate> <div ID="GlobalSettingsDecorationZone"> <fieldset id="RefreshProperties"> <legend>Refresh Settings</legend> <div id="RefreshArea"> <div id="RefreshLeftSide"> Auto-Refresh Enabled: <asp:CheckBox ID="AutoRefreshCheckBox" Runat="Server" /> </div> <div id="RefreshRightSide"> <telerik:RadNumericTextBox ID="AutoRefreshNumericTextBox" Runat="Server" Label="Auto-Refresh Interval (Minutes):" MaxValue="60" MinValue="1" ShowSpinButtons="True" Value="1" Width="225px" Enabled="False" LabelCssClass="riLabel LabelDisabled" DataType="System.Int32"> <NumberFormat DecimalDigits="0" AllowRounding="False" /> </telerik:RadNumericTextBox> </div> </div> </fieldset> <fieldset id="TabProperties"> <legend>Tab Settings</legend> <div id="TabPropertiesArea"> <div id="TabLeftSide"> <telerik:RadListBox ID="TabsListBox" Runat="Server" AllowDelete="True" AllowReorder="True" EnableDragAndDrop="True" Height="95px" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" Width="150px" OnClientLoad="OnClientLoad" TabIndex="1" /> </div> <div id="TabRightSide"> <telerik:RadTextBox ID="TabTextBox" Runat="Server" EmptyMessage="Enter tab name" Width="150px" /> <div id="TabButton"> <telerik:RadButton ID="TabTextApplyButton" Runat="server" Text="Add Tab" AutoPostBack="False" OnClientClicked="OnButtonClicked"> </telerik:RadButton> </div> </div> </div> </fieldset> <fieldset id="CycleProperties"> <legend>Tab Cycle Settings</legend> <div id="CycleArea"> <div id="CycleLeftSide"> Auto-Cycle Enabled: <asp:CheckBox ID="AutoCycleCheckBox" runat="server" /> </div> <div id="CycleRightSide"> <telerik:RadNumericTextBox ID="AutoCycleNumericTextBox" Runat="server" Label="Auto-Cycle Interval (Minutes):" MaxValue="60" MinValue="1" ShowSpinButtons="True" Value="1" Width="225px" Enabled="False" LabelCssClass="riLabel LabelDisabled" DataType="System.Int32"> <NumberFormat DecimalDigits="0" AllowRounding="False" /> </telerik:RadNumericTextBox> </div> </div> </fieldset> <div id="BottomButton"> <telerik:RadButton ID="ApplyGlobalSettingsButton" Runat="server" Text="Apply" AutoPostBack="False" OnClientClicked="CloseAndSave"/> </div> </div> </ContentTemplate> </cs:GlobalSettingsRadWindow>private void InitializeGlobalSettings(){ //Global Settings Window Code. GlobalSettings globalSettings = StateManager.GetStates<GlobalSettings>(); if (globalSettings.RefreshEnabled) { AutoRefreshCheckBox.Checked = true; AutoRefreshNumericTextBox.Value = globalSettings.RefreshInterval; AutoRefreshNumericTextBox.LabelCssClass = "LabelEnabled"; AutoRefreshNumericTextBox.Enabled = true; } TabsListBox.Items.Clear(); foreach (RadTab tab in LayoutManager.Instance.TabStrip.Tabs) { TabsListBox.Items.Add(new RadListBoxItem {Text = tab.Text, Value = tab.Value}); } if (globalSettings.CycleEnabled) { AutoCycleCheckBox.Checked = true; AutoCycleNumericTextBox.Value = globalSettings.CycleInterval; AutoCycleNumericTextBox.LabelCssClass = "LabelEnabled"; AutoCycleNumericTextBox.Enabled = true; }}