PDA

View Full Version : [CLOSED] Required/Not Required Text Fields Alignment - FormPanel



Istofix
Mar 03, 2014, 1:58 PM
Hi,

Is there a way to keep the required / not required text fields / combos aligned in the form panel ?

See the attached image to get a closer look on the issue.



Thank in advance.

Daniil
Mar 03, 2014, 2:03 PM
Hi @Istofix,

An image didn't appear. Did you not forget to attach?

Istofix
Mar 03, 2014, 2:04 PM
I just attached the image.

geoffrey.mcgill
Mar 03, 2014, 2:06 PM
There may be a problem with the new forum image upload. I am investigating.

geoffrey.mcgill
Mar 03, 2014, 2:07 PM
There may be a problem with the new forum image upload. I am investigating.

ok, I guess the image upload was working after all.

Daniil
Mar 03, 2014, 2:13 PM
I looked at the screenshot, but I don't quite understand the requirement. Could you elaborate on that, please?

Is a screenshot of you get or what you need? If any, is there an opposite?

Istofix
Mar 04, 2014, 12:24 PM
The problem here is that the text field with the required (red) indicator (Type field) has smaller width than the one below it (Phone field) and the difference is that the Type is a required field. Is there a way to make both fields have the same width.



Thanks.

Daniil
Mar 04, 2014, 12:46 PM
Clear, thanks. Maybe, by using the AnchorHorizontal setting.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:FormPanel runat="server" Width="200">
<Items>
<ext:TextField runat="server" FieldLabel="TextField" IndicatorIcon="BulletRed" />
<ext:TextField runat="server" FieldLabel="TextField" IndicatorIcon="BulletRed" />
<ext:TextField runat="server" FieldLabel="TextField" AnchorHorizontal="-18" />
<ext:TextField runat="server" FieldLabel="TextField" AnchorHorizontal="-18" />
</Items>
</ext:FormPanel>
</form>
</body>
</html>

Istofix
Mar 04, 2014, 12:50 PM
Great..It works..Thanks a lot.