<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="How can I know if a PanelForm is valid when.aspx.cs" Inherits="Work.Premium_help.How_can_I_know_if_a_PanelForm_is_valid_when" %><script runat="server"> [DirectMethod] public void ChangeText() { this.TextField3.Text = "1@1.com"; ; }</script><%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %><!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 id="Head1" runat="server"> <title>FormPanel Validation - Ext.NET Examples</title> <style type="text/css"> .icon-exclamation { padding-left: 25px !important; background: url(/icons/exclamation-png/ext.axd) no-repeat 3px 3px !important; } .icon-accept { padding-left: 25px !important; background: url(/icons/accept-png/ext.axd) no-repeat 3px 3px !important; } </style></head><body> <ext:ResourceManager ID="ResourceManager1" runat="server" /> <ext:FormPanel ID="FormPanel1" runat="server" Title="FormPanel Validation (all fields required)" MonitorPoll="500" MonitorValid="true" Padding="5" Width="600" Height="250" ButtonAlign="Right" Layout="Column"> <Items> <ext:Panel ID="Panel1" runat="server" Border="false" Header="false" ColumnWidth=".5" Layout="Form" LabelAlign="Top"> <Defaults> <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" /> <ext:Parameter Name="MsgTarget" Value="side" /> </Defaults> <Items> <ext:TextField ID="TextField1" runat="server" FieldLabel="First Name" AnchorHorizontal="92%" /> <ext:TextField ID="TextField1_" runat="server" FieldLabel="Company" AnchorHorizontal="92%" /> </Items> </ext:Panel> <ext:Panel ID="Panel2" runat="server" Border="false" Layout="Form" ColumnWidth=".5" LabelAlign="Top"> <Defaults> <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" /> <ext:Parameter Name="MsgTarget" Value="side" /> </Defaults> <Items> <ext:TextField ID="TextField2" runat="server" FieldLabel="Last Name" AnchorHorizontal="92%" /> <ext:TextField ID="TextField3" runat="server" FieldLabel="Email" Vtype="email" AnchorHorizontal="92%" /> </Items> </ext:Panel> </Items> <Buttons> <ext:Button ID="Button3" runat="server" Text="Change the text"> <Listeners> <Click Handler="Ext.net.DirectMethods.ChangeText({ success: function (result) { if (#{FormPanel1}.getForm().isValid()) {Ext.Msg.alert('Valid', 'The Form is valid!');}else{Ext.Msg.alert('Invalid', 'The Form is invalid!');} } });" /> </Listeners> </ext:Button> <ext:Button ID="Button1" runat="server" Text="Save"> <Listeners> <Click Handler="if (#{FormPanel1}.getForm().isValid()) {Ext.Msg.alert('Submit', 'Saved!');}else{Ext.Msg.show({icon: Ext.MessageBox.ERROR, msg: 'FormPanel is incorrect', buttons:Ext.Msg.OK});}" /> </Listeners> </ext:Button> <ext:Button ID="Button2" runat="server" Text="Cancel" /> </Buttons> <BottomBar> <ext:StatusBar ID="StatusBar1" runat="server" /> </BottomBar> <Listeners> <ClientValidation Handler="el.getBottomToolbar().setStatus({text : valid ? 'Form is valid' : 'Form is invalid', iconCls: valid ? 'icon-accept' : 'icon-exclamation'});" /> </Listeners> </ext:FormPanel></body></html>
<Listeners> <ClientValidation Handler="el.getImageButtonNext().setDisabled({text : valid ? true:false});" /> </Listeners> <ext:ImageButton ID="ImageButtonNext" runat="server" Disabled="true" ImageUrl="App_Themes/ChampWeb/Images/imaBtnStandar_Next_Out.png"> </ext:ImageButton>
Hi,I noticed that there are new directories after update from SVN. Could you tell me please how to update my project with this version?