Originally Posted by
Vladimir
Please post page and user control here. We don't need any assemblies, just test sample reproduces the issue. Please remove any unrelated code from the example
Hi
Here is the code
Aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ExtIssues.Default" %>
<%@ Register Assembly="Ext.Net" TagPrefix="ext" Namespace="Ext.Net" %>
<%@ Register Src="UserControls/MultiTranslation.ascx" TagName="MultiTranslation" TagPrefix="UsrCtrl" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
.controlContainer .x-form-item .x-form-element
{
padding-left: 5px !important;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="resourceManager" runat="server"></ext:ResourceManager>
<ext:Viewport Layout="BorderLayout" ID="mainContainer" runat="server">
<Items>
<ext:FormPanel ID="formPanelEdit" Title="Data Entry" runat="server" Region="Center" ButtonAlign="Left" Layout="FormLayout" Width="400">
<Items>
<ext:Container ID="userControlContainer" runat="server">
<Content>
<UsrCtrl:MultiTranslation ID="multiTranslation" runat="server" />
</Content>
</ext:Container>
<ext:ComboBox runat="server" ID="comboBox" Width="138" AllowBlank="false" BlankText="Combo Box Item Required">
<Items>
<ext:ListItem Value="Alpha" Text="Alpha"></ext:ListItem>
<ext:ListItem Value="Beta" Text="Beta"></ext:ListItem>
<ext:ListItem Value="Gama" Text="Gama"></ext:ListItem>
</Items>
</ext:ComboBox>
<ext:TextField ID="textField1" runat="server" MarginSpec="3 0 0 0" FieldLabel="Text Field1" LabelAlign="Top" AllowBlank="false" BlankText="Text Field1 Is Required">
</ext:TextField>
<ext:TextField ID="textField2" runat="server" MarginSpec="3 0 0 0" FieldLabel="Text Field2" LabelAlign="Top" AllowBlank="false" BlankText="Text Field2 Is Required">
</ext:TextField>
</Items>
<Buttons>
<ext:Button ID="btnAdd" runat="server" Text="Add" Icon="ImageAdd">
<DirectEvents>
<Click Before="return #{formPanelEdit}.getForm().isValid();" OnEvent="btnAdd_Click">
<EventMask ShowMask="true" />
</Click>
</DirectEvents>
<Listeners>
<Click Handler="if (#{formPanelEdit}.getForm().isValid()) {return true;}else{Ext.Msg.show({icon: Ext.MessageBox.ERROR, msg: 'FormPanel is incorrect', buttons:Ext.Msg.OK});}" />
</Listeners>
</ext:Button>
</Buttons>
<BottomBar>
<ext:StatusBar ID="StatusBar1" runat="server">
<Plugins>
<ext:ValidationStatus FormPanelID="formPanelEdit" ID="ctl38"></ext:ValidationStatus>
</Plugins>
</ext:StatusBar>
</BottomBar>
</ext:FormPanel>
<ext:FormPanel ID="formPanelList" runat="server" Region="East" Width="400" Layout="FormLayout">
<Items>
</Items>
</ext:FormPanel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
--------------------------------------------------------------
UserControl:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MultiTranslation.ascx.cs" Inherits="ExtIssues.UserControls.MultiTranslation" %>
<%@ Register Assembly="Ext.Net" TagPrefix="ext" Namespace="Ext.Net" %>
<ext:FormPanel ID="formPanelMultiTranslation" Layout="AnchorLayout" runat="server" Border="false">
<Items>
<ext:TextField ID="txt_InputGb" runat="server" Width="200" MaxLength="1000" BlankText="Translation Value Required" LabelAlign="Top"
Icon="FlagGb" FieldLabel="English" MarginSpec="3 0 0 0" AllowBlank="false">
</ext:TextField>
<ext:TextField ID="txt_InputIq" runat="server" Width="200" MaxLength="1000" BlankText="Translation Value Required" LabelAlign="Top"
Icon="FlagIq" FieldLabel="Arabic" MarginSpec="3 0 0 0" AllowBlank="false">
</ext:TextField>
<ext:TextField ID="txt_InputCn" runat="server" Width="200" MaxLength="1000" BlankText="Translation Value Required" LabelAlign="Top"
Icon="FlagCn" FieldLabel="Chineese" MarginSpec="3 0 0 0" AllowBlank="false">
</ext:TextField>
<ext:TextField ID="txt_InputHn" runat="server" Width="200" MaxLength="1000" BlankText="Translation Value Required" LabelAlign="Top"
Icon="FlagIn" FieldLabel="Hindi" MarginSpec="3 0 0 0" AllowBlank="false">
</ext:TextField>
</Items>
</ext:FormPanel>
Let me know your thoughts.
Regards
Mohan