Solved

PXGridColumn: Wrapped lable destroys layout

  • 9 November 2021
  • 3 replies
  • 29 views

Userlevel 1
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 +12

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 1
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 +12

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 — 2022  Acumatica, Inc. All rights reserved