Solved

PXGridColumn: Wrapped lable destroys layout

  • 9 November 2021
  • 3 replies
  • 43 views

Userlevel 2
Badge

I have a graph with a form that has two columns with one field each.

One has hiphen in its DisplayName which causes the lable to be wrapped. As you can see the lables take different space, though the LableWith is set equally for both columns.

 

<px:PXSelector LabelWidth="70" Width="120" runat="server" ID="CstPXTextEdit19" DataField="ShipFrom" ></px:PXSelector>
<px:PXSelector LabelWidth="70" Width="120" runat="server" ID="CstPXTextEdit20" DataField="ShipTo" ></px:PXSelector>

 

What can I do to get a proper alignment?

icon

Best answer by Naveen Boga 9 November 2021, 19:48

View original

3 replies

Userlevel 7
Badge +17

Hi @mhaps  Have you provided the PXLayoutRule (LablesWidth and Controlsize) for these controls on the .aspx page ?

 

 <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="SM" ControlSize="XM"></px:PXLayoutRule>

<px:PXDropDown ID="edBudgetLevel" runat="server" DataField="BudgetLevel" CommitChanges="True"></px:PXDropDown>
<px:PXDropDown ID="edCostBudgetLevel" runat="server" DataField="CostBudgetLevel" CommitChanges="True"></px:PXDropDown>

 

Userlevel 2
Badge

The two fields are in the same column and inside one PXLayoutRule.

ColumnWidth was set, but not LablesWidth or Controlsize. Setting LablesWidth of PXLayoutRule solved the problem.

Thanks @Naveen B !

Userlevel 7
Badge +17

Great :) Thanks for sharing an update @mhaps 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved