[CLOSED] IndicatorIcon is shown inside of TextField

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] IndicatorIcon is shown inside of TextField

    Using the following code
                <ext:Panel ID="Panel3" runat="server" Padding="6" Layout="FormLayout">
                    <Content>
                        <ext:TextField runat="server" ID="textField3" AllowBlank="false" IndicatorIcon="BulletRed" LabelWidth="100" InputWidth="100"/>
                    </Content>
                    <DirectEvents>
                        <Activate OnEvent="Panel3_Activate" Complete="Ext.net.Mask.hide();">
                            <EventMask Msg="Loading ..." ShowMask="true" CustomTarget="#{Panel3}" />
                        </Activate>
                    </DirectEvents>
                </ext:Panel>
    indicator is shown inside of text field, however if I replace InputWidth="100" with Width="200" everything works fine. How to solve it?
    Last edited by Daniil; Dec 05, 2013 at 1:18 PM. Reason: [CLOSED]
  2. #2
    The issue with InputWidth is fixed already (in SVN). The fix will be available in the next public release
  3. #3
    Quote Originally Posted by Vladimir View Post
    The issue with InputWidth is fixed already (in SVN). The fix will be available in the next public release
    When it will be available in NuGet update system approximately?
  4. #4
    Updated to 2.3.1 - the issue is still here.
  5. #5
    Thanks for the report, the issue is reproduced if a field has no label
    Fixed in SVN
  6. #6
    Quote Originally Posted by Vladimir View Post
    Thanks for the report, the issue is reproduced if a field has no label
    Fixed in SVN
    Err... But my field have label set..
    Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	1.0 KB 
ID:	7284
    I'll try to get version from SVN
  7. #7
    So the issue can still be reproduced but only if the field do not have FieldLabel set initially to some value and if FieldLabel is set in DirectEvent only.
    There is a workaround exists - I can just set FieldLabel to single space, but it's not a convenient solution :-)

    Example to demonstrate the difference:
    <%@ Page Language="C#" AutoEventWireup="true" %>
    <%@ Register TagPrefix="uc" TagName="panelContent" Src="~/UserControls/TestPanelContent.ascx" %>
    <!DOCTYPE html>
    
    <html>
    <head id="Head1" runat="server">
    	<title>Ext.NET Example</title>
    	<script runat="server">
    		protected void Page_Load(object sender, EventArgs e)
    		{
    			this.btnNumCopy.FieldLabel = "empty text";
    		}
    
    		protected void Activate_Event(object sender, DirectEventArgs e)
    		{
    			int btnNum;
    			if(!int.TryParse(e.ExtraParams["num"], out btnNum)) btnNum = 0;
    			
    			int[] arr = new int[btnNum];
    			for (int i = 0; i < btnNum; i++) arr[i] = i;
    			this.SolutionsRepeater.DataSource = arr;
    			this.SolutionsRepeater.DataBind();
    			this.tab1.UpdateContent();
    			this.btnNum.FieldLabel = "should be " + btnNum + " buttons";
    			this.btnNumCopy.FieldLabel = "should be " + btnNum + " buttons";
    		}
    
    		protected void SolutionsRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
    		{
    			int data = (int)e.Item.DataItem;
    			Ext.Net.Button btn = (Ext.Net.Button)e.Item.FindControl("ButtonInput");
    			btn.Text = "Button_" + data;
    		}
    				
    	</script>
    </head>
    <body>
    	<form id="Form1" runat="server">
    		<ext:ResourceManager ID="ResourceManager1" runat="server" Namespace="" />
    		<ext:TabPanel ID="Panel1" runat="server" BodyPadding="5" Height="300">
    			<Items>
    				<ext:Panel runat="server" ID="tab1" Frame="true">
    					<Content>
    						<asp:Repeater runat="server" ID="SolutionsRepeater" OnItemDataBound="SolutionsRepeater_ItemDataBound">
    							<ItemTemplate>
    								<ext:Button ID="ButtonInput" runat="server" Text="Text" />
    								<br />
    							</ItemTemplate>
    						</asp:Repeater>
    					</Content>
    					<DirectEvents>
    						<Activate OnEvent="Activate_Event">
    							<ExtraParams>
    								<ext:Parameter Name="num" Value="#{btnNum}.getValue()" Mode="Raw"></ext:Parameter>
    							</ExtraParams>
    						</Activate>
    					</DirectEvents>
    				</ext:Panel>
    				<ext:Panel runat="server" ID="tab2" Frame="true" AutoDoLayout="true">
    					<Items>
    						<ext:TextField runat="server" ID="btnNum" InputWidth="150" MaxLength="5" AllowBlank="false" IndicatorIcon="BulletRed"></ext:TextField>
    						<ext:TextField runat="server" ID="btnNumCopy" InputWidth="150" MaxLength="5" AllowBlank="false" IndicatorIcon="BulletRed"></ext:TextField>
    					</Items>
    				</ext:Panel>
    			</Items>
    		</ext:TabPanel>
    	</form>
    </body>
    </html>
    Switch to second tab and you'll see the difference between two almost the same fields...
  8. #8
    Hello!

    Thank you for your sample, we will review this issue.
  9. #9
    Thanks for the report. Fixed in SVN

    By the way, InputWidth is not public config property in ExtJS (ExtJS documentation has no such property). Sencha can remove support for that property in future releases
  10. #10
    Quote Originally Posted by Vladimir View Post
    Thanks for the report. Fixed in SVN
    Thank you.

    Quote Originally Posted by Vladimir View Post
    By the way, InputWidth is not public config property in ExtJS (ExtJS documentation has no such property). Sencha can remove support for that property in future releases
    They're not thinking about us poor developers. It's not a problem if the Width property will behave the same as it was before in the v1, but I'll be very mad about it :-) I spent too much time on changing Width to InputWidth in 300 places.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] IndicatorIcon placement
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 20, 2012, 6:40 PM
  2. [CLOSED] TextField inside a FieldSet
    By FAS in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 28, 2012, 4:27 PM
  3. Replies: 7
    Last Post: Dec 05, 2011, 11:52 AM
  4. Replies: 2
    Last Post: Oct 11, 2011, 1:15 PM
  5. [CLOSED] Focus on textfield inside a tab
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 10, 2008, 1:32 PM

Posting Permissions