Right to left direction for Ext.NET TextField

I need to align the Ext:TextField element with its FieldLabel attribute, as a direction from right to left. By setting LabelAlign to the right and body dir="rtl" , I can only align all controls to the right. And I get this format:

--------- Tag: - ||||||| TextField ||||||||||

But how can I get the following format?

||||||| TextField |||||||||| ---------: Tag

+4
source share
2 answers

FieldLabel will not work for rtl text fields. The only solution found is to enclose a label and text field inside the table cells aligned on the table row with dir="rtl" set to the table or container, for example, as follows.

 <table dir="rtl"> <tr> <td> <ext:Label ID="Label1" Text="Sample Label" runat="server" /> </td> <td> <ext:textfield ID="Text1" Text="Sample Text" runat="server" /> </td> </tr> </table> 
0
source

I'm not quite sure if this is possible, since there is no real need for such parameters.

I would suggest that you leave the text box label blank and add the label to the end ...

Example:

 <ext:textfield ID="Text1" Text="I start on the left" runat="server" /> <ext:label ID="Label1" Text="I am a label starting on the left staying on the right" StyleSpec="float: left;" /> 

It should work like that!

+1
source

All Articles